From 9761e88ce5a86ff534d582bed72047d2de50d8e0 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 17 Jan 2017 14:05:05 +1000 Subject: [PATCH] ensure bottomWeb shown again when exiting resetRequired --- aqt/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aqt/main.py b/aqt/main.py index 3b3253315..31a4151d4 100644 --- a/aqt/main.py +++ b/aqt/main.py @@ -378,7 +378,7 @@ the manual for information on how to restore from an automatic backup.")) ########################################################################## def moveToState(self, state, *args): - #print "-> move from", self.state, "to", state + #print("-> move from", self.state, "to", state) oldState = self.state or "dummy" cleanup = getattr(self, "_"+oldState+"Cleanup", None) if cleanup: @@ -386,6 +386,8 @@ the manual for information on how to restore from an automatic backup.")) self.state = state runHook('beforeStateChange', state, oldState, *args) getattr(self, "_"+state+"State")(oldState, *args) + if state != "resetRequired": + self.bottomWeb.show() runHook('afterStateChange', state, oldState, *args) def _deckBrowserState(self, oldState):