diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-01-08 20:07:58 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-01-08 20:07:58 +0000 |
| commit | adb244ff095e3b57b8375fd4480edb6069c2274b (patch) | |
| tree | 6bb40473a83f45f1ff1a64b59e732344ccc42d07 | |
| parent | ace025de90a76b206ce99f0ae8e5829d82a18240 (diff) | |
| download | enigma2-adb244ff095e3b57b8375fd4480edb6069c2274b.tar.gz enigma2-adb244ff095e3b57b8375fd4480edb6069c2274b.zip | |
no more crash when wakeup the box from standby
| -rw-r--r-- | mytest.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -387,7 +387,7 @@ class VolumeControl: 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""" @@ -398,7 +398,7 @@ class PowerKey: 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, @@ -424,7 +424,8 @@ class PowerKey: 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 |
