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 374ea11a498200d7e5ed9bfa8bd46bb5ff2d5811..09dfceb621764d4774896765f663c95466320e30 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))