mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-29 10:12:34 -04:00
Fix hidden search bar state not being restored on calibre restart. Fixes #1705916 [[Enhancement] Remeber if Search bar is hidden](https://bugs.launchpad.net/calibre/+bug/1705916)
This commit is contained in:
@@ -365,7 +365,7 @@ class SearchBarButton(LayoutButton): # {{{
|
||||
def __init__(self, gui):
|
||||
sc = 'Alt+Shift+F'
|
||||
LayoutButton.__init__(self, I('search.png'), _('Search bar'), parent=gui, shortcut=sc)
|
||||
self.set_state_to_show()
|
||||
self.set_state_to_hide()
|
||||
self.action_toggle = QAction(self.icon(), _('Toggle') + ' ' + self.label, self)
|
||||
gui.addAction(self.action_toggle)
|
||||
gui.keyboard.register_shortcut('search bar toggle' + self.label, unicode(self.action_toggle.text()),
|
||||
|
||||
Reference in New Issue
Block a user