aboutsummaryrefslogtreecommitdiff
path: root/mytest.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-07-30 20:20:34 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-07-30 20:20:34 +0000
commitd0f2817f1832e912282c886454e4f8112da56966 (patch)
treec56e018b3f0281cc9d5d3695c3dffa8eace19034 /mytest.py
parent8cada4eb31be58a3fa3efa09afbf431b3b62ca08 (diff)
downloadenigma2-d0f2817f1832e912282c886454e4f8112da56966.tar.gz
enigma2-d0f2817f1832e912282c886454e4f8112da56966.zip
allow standby only in InfoBar, MoviePlayer, Menus, Setup and Radiomode
Diffstat (limited to 'mytest.py')
-rw-r--r--mytest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mytest.py b/mytest.py
index aa63567a..8ea13e0a 100644
--- a/mytest.py
+++ b/mytest.py
@@ -397,7 +397,8 @@ class PowerKey:
self.standby()
def standby(self):
- self.session.open(Standby, self)
+ if self.session.current_dialog and self.session.current_dialog.ALLOW_SUSPEND:
+ self.session.open(Standby, self)
def quit(self):
# halt