Call browser show hook prior to initiating search

https://github.com/ankipalace/advanced-browser/issues/141
This commit is contained in:
Damien Elmes 2022-04-02 21:42:49 +10:00
parent d90608198f
commit 9ed12bb9d0

View File

@ -137,8 +137,8 @@ class Browser(QMainWindow):
self.on_undo_state_change(mw.undo_actions_info()) self.on_undo_state_change(mw.undo_actions_info())
# legacy alias # legacy alias
self.model = MockModel(self) self.model = MockModel(self)
self.setupSearch(card, search)
gui_hooks.browser_will_show(self) gui_hooks.browser_will_show(self)
self.setupSearch(card, search)
self.show() self.show()
def on_operation_did_execute( def on_operation_did_execute(