SleepTimerEdit.py: store latest selected sleeptimer action
authorghost <andreas.monzner@multimedia-labs.de>
Fri, 16 Oct 2009 12:57:10 +0000 (14:57 +0200)
committerghost <andreas.monzner@multimedia-labs.de>
Fri, 16 Oct 2009 12:57:10 +0000 (14:57 +0200)
lib/python/Screens/SleepTimerEdit.py

index 1a4b656..ff061d8 100644 (file)
@@ -97,6 +97,7 @@ class SleepTimerEdit(Screen):
                        time = int(self["input"].getText())
                        config.SleepTimer.defaulttime.setValue(time)
                        config.SleepTimer.defaulttime.save()
                        time = int(self["input"].getText())
                        config.SleepTimer.defaulttime.setValue(time)
                        config.SleepTimer.defaulttime.save()
+                       config.SleepTimer.action.save()
                        self.session.nav.SleepTimer.setSleepTime(time)
                        self.session.openWithCallback(self.close, MessageBox, _("The sleep timer has been activated."), MessageBox.TYPE_INFO)
                else:
                        self.session.nav.SleepTimer.setSleepTime(time)
                        self.session.openWithCallback(self.close, MessageBox, _("The sleep timer has been activated."), MessageBox.TYPE_INFO)
                else: