[geary/wip/289-folder-not-fully-populated] Don't unncessarily check for more conversations to load



commit 03dbe0e0f16cab9e67ae027356a9aac6c876df6f
Author: Michael Gratton <mike vee net>
Date:   Thu Apr 4 19:42:55 2019 +1100

    Don't unncessarily check for more conversations to load
    
    The ConversationMonitor insert and remove operations don't need to check
    for more to load. The client will take care of that if needed.

 src/engine/app/conversation-monitor/app-insert-operation.vala | 3 ---
 src/engine/app/conversation-monitor/app-remove-operation.vala | 6 ------
 2 files changed, 9 deletions(-)
---
diff --git a/src/engine/app/conversation-monitor/app-insert-operation.vala 
b/src/engine/app/conversation-monitor/app-insert-operation.vala
index f97f689b..14f63ebb 100644
--- a/src/engine/app/conversation-monitor/app-insert-operation.vala
+++ b/src/engine/app/conversation-monitor/app-insert-operation.vala
@@ -38,8 +38,5 @@ private class Geary.App.InsertOperation : ConversationOperation {
               this.monitor.base_folder.to_string(),
               this.inserted_ids.size);
         yield this.monitor.load_by_sparse_id(to_insert);
-
-        // Check to see if we need any more
-        this.monitor.check_window_count();
     }
 }
diff --git a/src/engine/app/conversation-monitor/app-remove-operation.vala 
b/src/engine/app/conversation-monitor/app-remove-operation.vala
index 6e31436a..33cbc6d8 100644
--- a/src/engine/app/conversation-monitor/app-remove-operation.vala
+++ b/src/engine/app/conversation-monitor/app-remove-operation.vala
@@ -40,12 +40,6 @@ private class Geary.App.RemoveOperation : ConversationOperation {
             trimmed,
             (this.source_folder == this.monitor.base_folder) ? this.removed_ids : null
         );
-
-        // Check we still have enough conversations if any were
-        // removed
-        if (!removed.is_empty) {
-            this.monitor.check_window_count();
-        }
     }
 
 }


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