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



commit 8ebc49fd1133d647802bcebf92509b55fcd64190
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]