X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/64281edbf808514b65c333f134f2f824a2dcae36..ec55d380cf26ce2d8c14ec0167f97927a8f46d40:/mytest.py diff --git a/mytest.py b/mytest.py index 423031fb..c335bf2d 100755 --- a/mytest.py +++ b/mytest.py @@ -342,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":