[geary/mjog/responsive-layout-fixes: 21/23] client: Ensure search UI is actually shown when activating shortcut




commit 2222c6af87b3b9cd1482083e4bc084fd27e1008a
Author: Michael Gratton <mike vee net>
Date:   Wed Apr 14 09:16:49 2021 +1000

    client: Ensure search UI is actually shown when activating shortcut

 src/client/application/application-main-window.vala | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/src/client/application/application-main-window.vala 
b/src/client/application/application-main-window.vala
index fde9aa2de..53a48cf0e 100644
--- a/src/client/application/application-main-window.vala
+++ b/src/client/application/application-main-window.vala
@@ -957,6 +957,13 @@ public class Application.MainWindow :
 
     /** Displays and focuses the search bar for the window. */
     public void show_search_bar(string? text = null) {
+        if (!this.is_conversation_list_shown) {
+            if (this.outer_leaflet.folded) {
+                this.outer_leaflet.set_visible_child_name(INNER_LEAFLET);
+            }
+            this.inner_leaflet.set_visible_child_name(CONVERSATION_LIST);
+        }
+
         this.search_bar.grab_focus();
         if (text != null) {
             this.search_bar.entry.text = text;


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