aboutsummaryrefslogtreecommitdiff
path: root/mytest.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2009-02-13 14:59:26 +0100
committerFelix Domke <tmbinc@elitedvb.net>2009-02-13 14:59:26 +0100
commit320af8d597644b9e7e21d0faef6143cfc62fc441 (patch)
tree362adfc0ca997f48978db89411a49211b0133eeb /mytest.py
parent20007678238c8cfd9c7d74209f03e1c19f1ce58c (diff)
downloadenigma2-320af8d597644b9e7e21d0faef6143cfc62fc441.tar.gz
enigma2-320af8d597644b9e7e21d0faef6143cfc62fc441.zip
don't handle powerlong unless dialog can handle it
Diffstat (limited to 'mytest.py')
-rw-r--r--mytest.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mytest.py b/mytest.py
index 8f23beac..ee22e20c 100644
--- a/mytest.py
+++ b/mytest.py
@@ -343,6 +343,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":