Have show/hide_panel work with search bar as well

This commit is contained in:
Kovid Goyal 2023-12-22 13:53:03 +05:30
parent 3ab9a2eef0
commit fa716c903c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -597,9 +597,15 @@ class LayoutMixin: # {{{
self.library_view.setFocus(Qt.FocusReason.OtherFocusReason) self.library_view.setFocus(Qt.FocusReason.OtherFocusReason)
def show_panel(self, name): def show_panel(self, name):
if name == 'search_bar':
self.search_bar_button.setChecked(True)
return
self.layout_container.show_panel(name) self.layout_container.show_panel(name)
def hide_panel(self, name): def hide_panel(self, name):
if name == 'search_bar':
self.search_bar_button.setChecked(False)
return
self.layout_container.hide_panel(name) self.layout_container.hide_panel(name)
def set_search_string_with_append(self, expression, append=''): def set_search_string_with_append(self, expression, append=''):