mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
Call browser_will_show before restoring state (#2198)
This is to fix a recent issue that started to appear in the Fastbar add-on where the layout of the toolbar is broken.
This commit is contained in:
parent
ad4acf90ef
commit
05b5abb856
1 changed files with 1 additions and 1 deletions
|
@ -137,6 +137,7 @@ class Browser(QMainWindow):
|
||||||
self.setupMenus()
|
self.setupMenus()
|
||||||
self.setupHooks()
|
self.setupHooks()
|
||||||
self.setupEditor()
|
self.setupEditor()
|
||||||
|
gui_hooks.browser_will_show(self)
|
||||||
|
|
||||||
# restoreXXX() should be called after all child widgets have been created
|
# restoreXXX() should be called after all child widgets have been created
|
||||||
# and attached to QMainWindow
|
# and attached to QMainWindow
|
||||||
|
@ -156,7 +157,6 @@ 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)
|
||||||
gui_hooks.browser_will_show(self)
|
|
||||||
self.setupSearch(card, search)
|
self.setupSearch(card, search)
|
||||||
self.show()
|
self.show()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue