X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=mytest.py;h=c335bf2dd8e5e566a791eb5b45d13c3ce03ed98a;hb=d58ca4cf34b7621aea4e2c1ff07bed6b2cd6b763;hp=8f23beacb1119d619b54c9422251ab2d698aa20e;hpb=09f66522e9f51ac8fc7921bd77ba36a9d9d3d4b3;p=vuplus_dvbapp diff --git a/mytest.py b/mytest.py old mode 100644 new mode 100755 index 8f23bea..c335bf2 --- a/mytest.py +++ b/mytest.py @@ -76,7 +76,6 @@ from Components.PluginComponent import plugins profile("LOAD:Wizard") from Screens.Wizard import wizardManager from Screens.DefaultWizard import * -from Screens.ImageWizard import * from Screens.StartWizard import * from Screens.TutorialWizard import * import Screens.Rc @@ -343,6 +342,9 @@ class PowerKey: self.session.open(Screens.Standby.TryQuitMainloop, 1) def powerlong(self): + if Screens.Standby.inTryQuitMainloop or (self.session.current_dialog and not self.session.current_dialog.ALLOW_SUSPEND): + return + self.standbyblocked = 1 action = config.usage.on_long_powerpress.value if action == "shutdown":