mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Have show/hide_panel work with search bar as well
This commit is contained in:
parent
3ab9a2eef0
commit
fa716c903c
@ -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=''):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user