diff --git a/aqt/main.py b/aqt/main.py index 19ab5ea81..05c28c684 100644 --- a/aqt/main.py +++ b/aqt/main.py @@ -383,7 +383,9 @@ the manual for information on how to restore from an automatic backup.")) if cleanup: cleanup(state) self.state = state + runHook('beforeStateChange', state, oldState, *args) getattr(self, "_"+state+"State")(oldState, *args) + runHook('afterStateChange', state, oldState, *args) def _deckBrowserState(self, oldState): self.deckBrowser.show()