From 2222c6af87b3b9cd1482083e4bc084fd27e1008a Mon Sep 17 00:00:00 2001 From: Michael Gratton Date: Wed, 14 Apr 2021 09:16:49 +1000 Subject: [PATCH] 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 fde9aa2d..53a48cf0 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;