projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2000767
)
don't handle powerlong unless dialog can handle it
author
Felix Domke
<tmbinc@elitedvb.net>
Fri, 13 Feb 2009 13:59:26 +0000
(14:59 +0100)
committer
Felix Domke
<tmbinc@elitedvb.net>
Fri, 13 Feb 2009 13:59:26 +0000
(14:59 +0100)
mytest.py
patch
|
blob
|
history
diff --git
a/mytest.py
b/mytest.py
index
8f23bea
..
ee22e20
100644
(file)
--- a/
mytest.py
+++ b/
mytest.py
@@
-343,6
+343,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":