[geary/mjog/search-update: 29/30] Geary.App.RemoveOperation: Queue a window count check after executing
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/mjog/search-update: 29/30] Geary.App.RemoveOperation: Queue a window count check after executing
- Date: Thu, 14 Jan 2021 11:30:21 +0000 (UTC)
commit 76c88c8033ac0f93d068ebb1880e6888bfe6b563
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]