set day of week for non-repeated timers to ease usability when changing a timer to...
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sun, 15 Jan 2006 16:44:53 +0000 (16:44 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sun, 15 Jan 2006 16:44:53 +0000 (16:44 +0000)
lib/python/Screens/TimerEntry.py

index 374ea11..09dfceb 100644 (file)
@@ -81,6 +81,8 @@ class TimerEntry(Screen):
                        else: # once
                                type = 0
                                repeated = 0
+                               weekday = (int(strftime("%w", time.localtime(self.timer.begin))) - 1) % 7
+                               day[weekday] = 0
                        
                        config.timerentry.type = configElement_nonSave("config.timerentry.type", configSelection, type, (_("once"), _("repeated")))
                        config.timerentry.name = configElement_nonSave("config.timerentry.name", configText, self.timer.name, (configText.extendableSize, self.keyRightCallback))