[geary/wip/765516-gtk-widget-conversation-viewer] Don't hide in-window composers just after they are shown.



commit 959aa26560fe9b5bc6d1602aff7f583a15af6314
Author: Michael James Gratton <mike vee net>
Date:   Thu Jul 28 00:07:11 2016 +1000

    Don't hide in-window composers just after they are shown.

 .../conversation-viewer/conversation-viewer.vala   |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/client/conversation-viewer/conversation-viewer.vala 
b/src/client/conversation-viewer/conversation-viewer.vala
index 2e3f502..9997904 100644
--- a/src/client/conversation-viewer/conversation-viewer.vala
+++ b/src/client/conversation-viewer/conversation-viewer.vala
@@ -203,6 +203,12 @@ public class ConversationViewer : Gtk.Stack {
      */
     public async void load_conversations(Gee.Set<Geary.App.Conversation> conversations,
                                          Geary.Folder location) {
+        if (get_visible_child() == this.composer_page) {
+            // When first showing a composer, the conversation list
+            // will be cleared. In that case the composer should
+            // remain visible.
+            return;
+        }
         debug("Conversations selected in %s: %u", location.to_string(), conversations.size);
         if (conversations.size == 0) {
             set_visible_child(this.no_conversations_page);


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