git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merge with latest changes
[enigma2.git]
/
mytest.py
diff --git
a/mytest.py
b/mytest.py
index 423031fb983d954bd8081bc98fb47030fab4a6c8..c335bf2dd8e5e566a791eb5b45d13c3ce03ed98a 100755
(executable)
--- a/
mytest.py
+++ b/
mytest.py
@@
-342,6
+342,9
@@
class PowerKey:
self.session.open(Screens.Standby.TryQuitMainloop, 1)
def powerlong(self):
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":
self.standbyblocked = 1
action = config.usage.on_long_powerpress.value
if action == "shutdown":