ensure bottomWeb shown again when exiting resetRequired

This commit is contained in:
Damien Elmes 2017-01-17 14:05:05 +10:00
parent c382a83395
commit 9761e88ce5

View file

@ -378,7 +378,7 @@ the manual for information on how to restore from an automatic backup."))
########################################################################## ##########################################################################
def moveToState(self, state, *args): def moveToState(self, state, *args):
#print "-> move from", self.state, "to", state #print("-> move from", self.state, "to", state)
oldState = self.state or "dummy" oldState = self.state or "dummy"
cleanup = getattr(self, "_"+oldState+"Cleanup", None) cleanup = getattr(self, "_"+oldState+"Cleanup", None)
if cleanup: if cleanup:
@ -386,6 +386,8 @@ the manual for information on how to restore from an automatic backup."))
self.state = state self.state = state
runHook('beforeStateChange', state, oldState, *args) runHook('beforeStateChange', state, oldState, *args)
getattr(self, "_"+state+"State")(oldState, *args) getattr(self, "_"+state+"State")(oldState, *args)
if state != "resetRequired":
self.bottomWeb.show()
runHook('afterStateChange', state, oldState, *args) runHook('afterStateChange', state, oldState, *args)
def _deckBrowserState(self, oldState): def _deckBrowserState(self, oldState):