aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/TimerEntry.py
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-01-15 16:44:53 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-01-15 16:44:53 +0000
commita52476e8ffc33c408318eabbf24fdf87e404ddaf (patch)
tree3972d11e53088205cd1b667c7c33fd1f6dc4272d /lib/python/Screens/TimerEntry.py
parenta60706d6e68355f37a404872e5f91f4c827bdb2a (diff)
downloadenigma2-a52476e8ffc33c408318eabbf24fdf87e404ddaf.tar.gz
enigma2-a52476e8ffc33c408318eabbf24fdf87e404ddaf.zip
set day of week for non-repeated timers to ease usability when changing a timer to repeated
Diffstat (limited to 'lib/python/Screens/TimerEntry.py')
-rw-r--r--lib/python/Screens/TimerEntry.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/python/Screens/TimerEntry.py b/lib/python/Screens/TimerEntry.py
index 374ea11a..09dfceb6 100644
--- a/lib/python/Screens/TimerEntry.py
+++ b/lib/python/Screens/TimerEntry.py
@@ -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))