projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ace025d
)
no more crash when wakeup the box from standby
author
Andreas Monzner
<andreas.monzner@multimedia-labs.de>
Mon, 8 Jan 2007 20:07:58 +0000
(20:07 +0000)
committer
Andreas Monzner
<andreas.monzner@multimedia-labs.de>
Mon, 8 Jan 2007 20:07:58 +0000
(20:07 +0000)
mytest.py
patch
|
blob
|
history
diff --git
a/mytest.py
b/mytest.py
index
5bc0891
..
2169857
100644
(file)
--- a/
mytest.py
+++ b/
mytest.py
@@
-387,7
+387,7
@@
class VolumeControl:
self.muteDialog.hide()
self.volumeDialog.setValue(vol)
self.muteDialog.hide()
self.volumeDialog.setValue(vol)
-from Screens.Standby import Standby, TryQuitMainloop, inTryQuitMainloop
+from Screens.Standby import Standby,
inStandby,
TryQuitMainloop, inTryQuitMainloop
class PowerKey:
""" PowerKey stuff - handles the powerkey press and powerkey release actions"""
class PowerKey:
""" PowerKey stuff - handles the powerkey press and powerkey release actions"""
@@
-398,7
+398,7
@@
class PowerKey:
self.powerKeyTimer.timeout.get().append(self.powertimer)
globalActionMap.actions["powerdown"]=self.powerdown
globalActionMap.actions["powerup"]=self.powerup
self.powerKeyTimer.timeout.get().append(self.powertimer)
globalActionMap.actions["powerdown"]=self.powerdown
globalActionMap.actions["powerup"]=self.powerup
- self.standbyblocked =
0
+ self.standbyblocked =
1
# self["PowerKeyActions"] = HelpableActionMap(self, "PowerKeyActions",
#{
#"powerdown": self.powerdown,
# self["PowerKeyActions"] = HelpableActionMap(self, "PowerKeyActions",
#{
#"powerdown": self.powerdown,
@@
-424,7
+424,8
@@
class PowerKey:
self.standby()
def standby(self):
self.standby()
def standby(self):
- if self.session.current_dialog and self.session.current_dialog.ALLOW_SUSPEND:
+ global inStandby
+ if not inStandby and self.session.current_dialog and self.session.current_dialog.ALLOW_SUSPEND:
self.session.open(Standby)
from Screens.Scart import Scart
self.session.open(Standby)
from Screens.Scart import Scart