diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2009-02-13 14:59:26 +0100 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2009-02-13 14:59:26 +0100 |
| commit | 320af8d597644b9e7e21d0faef6143cfc62fc441 (patch) | |
| tree | 362adfc0ca997f48978db89411a49211b0133eeb | |
| parent | 20007678238c8cfd9c7d74209f03e1c19f1ce58c (diff) | |
| download | enigma2-320af8d597644b9e7e21d0faef6143cfc62fc441.tar.gz enigma2-320af8d597644b9e7e21d0faef6143cfc62fc441.zip | |
don't handle powerlong unless dialog can handle it
| -rw-r--r-- | mytest.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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": |
