[geary/mjog/search-update: 40/43] Geary.App.RemoveOperation: Queue a window count check after executing




commit 24140c07cde6998cb9a11e1343853df9dda94ff1
Author: Michael Gratton <mike vee net>
Date:   Thu Jan 14 21:09:56 2021 +1100

    Geary.App.RemoveOperation: Queue a window count check after executing
    
    Since when removing messages from the conversation monitor (especially
    when a search is changed) the window might get smaller, queue a check
    to re-fill if needed.

 src/engine/app/conversation-monitor/app-remove-operation.vala | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/engine/app/conversation-monitor/app-remove-operation.vala 
b/src/engine/app/conversation-monitor/app-remove-operation.vala
index 8105d959e..f977e9023 100644
--- a/src/engine/app/conversation-monitor/app-remove-operation.vala
+++ b/src/engine/app/conversation-monitor/app-remove-operation.vala
@@ -35,13 +35,14 @@ private class Geary.App.RemoveOperation : BatchOperation<EmailIdentifier> {
             trimmed
         );
 
-
-        // Fire signals, clean up
         this.monitor.removed(
             removed,
             trimmed,
             (this.source_folder == this.monitor.base_folder) ? batch : null
         );
+
+        // Queue an update since many emails may have been removed
+        this.monitor.check_window_count();
     }
 
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]