From 9ed12bb9d09ec2e5e862d1eaaa00846c33ba7f29 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 2 Apr 2022 21:42:49 +1000 Subject: [PATCH] Call browser show hook prior to initiating search https://github.com/ankipalace/advanced-browser/issues/141 --- qt/aqt/browser/browser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/browser/browser.py b/qt/aqt/browser/browser.py index 4a314feac..392e533d9 100644 --- a/qt/aqt/browser/browser.py +++ b/qt/aqt/browser/browser.py @@ -137,8 +137,8 @@ class Browser(QMainWindow): self.on_undo_state_change(mw.undo_actions_info()) # legacy alias self.model = MockModel(self) - self.setupSearch(card, search) gui_hooks.browser_will_show(self) + self.setupSearch(card, search) self.show() def on_operation_did_execute(