[geary/mjog/invert-folder-class-hierarchy: 61/72] ConversationListStore: Update previews when email fully loaded
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/mjog/invert-folder-class-hierarchy: 61/72] ConversationListStore: Update previews when email fully loaded
- Date: Wed, 3 Mar 2021 11:52:48 +0000 (UTC)
commit 7ff5fee7f215ec3fd3cc739aee0a7d0dcf5aa521
Author: Michael Gratton <mike vee net>
Date: Sun Feb 28 19:54:11 2021 +1100
ConversationListStore: Update previews when email fully loaded
src/client/conversation-list/conversation-list-store.vala | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/src/client/conversation-list/conversation-list-store.vala
b/src/client/conversation-list/conversation-list-store.vala
index b7135d4bc..7f6ab2718 100644
--- a/src/client/conversation-list/conversation-list-store.vala
+++ b/src/client/conversation-list/conversation-list-store.vala
@@ -124,6 +124,9 @@ public class ConversationListStore : Gtk.ListStore {
conversations.conversation_appended.connect(on_conversation_appended);
conversations.conversation_trimmed.connect(on_conversation_trimmed);
conversations.email_flags_changed.connect(on_email_flags_changed);
+ conversations.base_folder.account.email_complete.connect(
+ on_email_completed
+ );
// add all existing conversations
on_conversations_added(conversations.read_only_view);
@@ -480,6 +483,10 @@ public class ConversationListStore : Gtk.ListStore {
refresh_previews_async.begin(this.conversations);
}
+ private void on_email_completed() {
+ this.refresh_previews_async.begin(this.conversations);
+ }
+
private bool update_date_string(Gtk.TreeModel model, Gtk.TreePath path, Gtk.TreeIter iter) {
FormattedConversationData? message_data;
model.get(iter, Column.CONVERSATION_DATA, out message_data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]