X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=mytest.py;h=2597f8d6866452614ca553659c3e58bff87bb40c;hb=d86cc260a48ecd99b919d2a18669578eccbb85e8;hp=7e7c662d15bf03a7cd3cbe5d2e650f5a1403bd5b;hpb=6f73e6abddf4170357c490966d0e1c622eb376f5;p=vuplus_dvbapp diff --git a/mytest.py b/mytest.py index 7e7c662..2597f8d 100644 --- a/mytest.py +++ b/mytest.py @@ -431,9 +431,9 @@ class PowerKey: def shutdown(self): print "PowerOff - Now!" - if not Screens.Standby.inTryQuitMainloop: + if not Screens.Standby.inTryQuitMainloop and self.session.current_dialog and self.session.current_dialog.ALLOW_SUSPEND: self.session.open(Screens.Standby.TryQuitMainloop, 1) - + def powerlong(self): self.standbyblocked = 1 action = config.usage.on_long_powerpress.value