[geary] Make conversation viewer's spinner go away when autoselect pref is off.



commit 8ea5e3c8a061b1d64a6e134467be7c67246f607b
Author: Michael James Gratton <mike vee net>
Date:   Tue Oct 18 00:50:28 2016 +1100

    Make conversation viewer's spinner go away when autoselect pref is off.
    
    Bug 773054.
    
    * src/client/conversation-list/conversation-list-view.vala
      (ConversationListView::on_scan_completed): Artificially fire
      conversations_selected so that the controller knows that no
      conversations have been selected after the folder has changed, and
      hence gets the conversation viewer to display the "none selected" ui.

 .../conversation-list/conversation-list-view.vala  |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/src/client/conversation-list/conversation-list-view.vala 
b/src/client/conversation-list/conversation-list-view.vala
index 2a14eba..d5dd294 100644
--- a/src/client/conversation-list/conversation-list-view.vala
+++ b/src/client/conversation-list/conversation-list-view.vala
@@ -135,10 +135,15 @@ public class ConversationListView : Gtk.TreeView {
     
     private void on_scan_completed() {
         enable_load_more = true;
-        
-        // Select first conversation.
-        if (GearyApplication.instance.config.autoselect)
+
+        if (GearyApplication.instance.config.autoselect) {
+            // Select first conversation
             select_first_conversation();
+        } else {
+            // Notify of that no conversations will be selected
+            conversations_selected(this.selected.read_only_view);
+        }
+
     }
     
     private void on_conversation_removed(Geary.App.Conversation conversation) {


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