diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-01-07 01:00:31 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-01-07 01:00:31 +0000 |
| commit | 674719294af7449c52d93b1969aeebbaa9117cbe (patch) | |
| tree | 5a0678ae9982c8a0bc7607d46a2b03b9d8738027 /mytest.py | |
| parent | 181f1cdcee428f446da2a1d05976b7f1a75a8431 (diff) | |
| download | enigma2-674719294af7449c52d93b1969aeebbaa9117cbe.tar.gz enigma2-674719294af7449c52d93b1969aeebbaa9117cbe.zip | |
take care of running recording before realy shutdown e2
Diffstat (limited to 'mytest.py')
| -rw-r--r-- | mytest.py | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -387,7 +387,7 @@ class VolumeControl: self.muteDialog.hide() self.volumeDialog.setValue(vol) -from Screens.Standby import Standby +from Screens.Standby import Standby, TryQuitMainloop, inTryQuitMainloop class PowerKey: """ PowerKey stuff - handles the powerkey press and powerkey release actions""" @@ -409,7 +409,9 @@ class PowerKey: def powertimer(self): print "PowerOff - Now!" - self.quit() + global inTryQuitMainloop + if not inTryQuitMainloop: + self.session.open(TryQuitMainloop, 1) def powerdown(self): self.standbyblocked = 0 @@ -423,11 +425,7 @@ class PowerKey: def standby(self): if self.session.current_dialog and self.session.current_dialog.ALLOW_SUSPEND: - self.session.open(Standby, self) - - def quit(self): - # halt - quitMainloop(1) + self.session.open(Standby) from Screens.Scart import Scart @@ -489,7 +487,7 @@ def runScreenTest(): # we need session.scart to access it from within menu.xml session.scart = AutoScartControl(session) - + runReactor() configfile.save() |
