aboutsummaryrefslogtreecommitdiff
path: root/mytest.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2009-03-26 17:10:17 +0100
committerFelix Domke <tmbinc@elitedvb.net>2009-03-26 17:10:17 +0100
commit54475ce18e43482b2ec1a150f7fa07c3464ec6d2 (patch)
treeec641a04666073ddf55277767bf21a772d915453 /mytest.py
parentcdfb7515f62a8860b763d3a51c92ab94fa8a2191 (diff)
downloadenigma2-54475ce18e43482b2ec1a150f7fa07c3464ec6d2.tar.gz
enigma2-54475ce18e43482b2ec1a150f7fa07c3464ec6d2.zip
don't allow standby when there is no active screen
Diffstat (limited to 'mytest.py')
-rwxr-xr-xmytest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mytest.py b/mytest.py
index b58ec2df..1d9594a9 100755
--- a/mytest.py
+++ b/mytest.py
@@ -376,7 +376,7 @@ class PowerKey:
self.standby()
def standby(self):
- if not Screens.Standby.inStandby and self.session.current_dialog and self.session.current_dialog.ALLOW_SUSPEND:
+ if not Screens.Standby.inStandby and self.session.current_dialog and self.session.current_dialog.ALLOW_SUSPEND and self.session.in_exec:
self.session.open(Screens.Standby.Standby)
profile("Scart")