[geary/mjog/responsive-layout-fixes: 2/2] client: Fix main window load_more being triggered folded




commit 00f33285632d7d7ecc60e5bb6aa2a52e25f6ed81
Author: Michael Gratton <mike vee net>
Date:   Sun Apr 11 18:15:25 2021 +1000

    client: Fix main window load_more being triggered folded
    
    Don't need to load more when the conversation list is not being shown.

 src/client/application/application-main-window.vala | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/client/application/application-main-window.vala 
b/src/client/application/application-main-window.vala
index 0e1353260..7f4323892 100644
--- a/src/client/application/application-main-window.vala
+++ b/src/client/application/application-main-window.vala
@@ -1668,7 +1668,8 @@ public class Application.MainWindow :
     }
 
     private void load_more() {
-        if (this.conversations != null) {
+        if (this.is_conversation_list_shown &&
+            this.conversations != null) {
             this.conversations.min_window_count += MIN_CONVERSATION_COUNT;
         }
     }


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