X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/988a709c9d2951f6802a8e78f53785664e8ea590..059982cc102de394ac316abc3ee0806673d003d5:/lib/python/Screens/TimerEntry.py diff --git a/lib/python/Screens/TimerEntry.py b/lib/python/Screens/TimerEntry.py index 0c94c170..14aa1ce3 100644 --- a/lib/python/Screens/TimerEntry.py +++ b/lib/python/Screens/TimerEntry.py @@ -40,7 +40,7 @@ class TimerEntry(Screen): config.timerentry = ConfigSubsection() config.timerentry.type = configElement_nonSave("config.timerentry.type", configSelection, 0, ("once", "repeated")) - config.timerentry.description = configElement_nonSave("config.timerentry.description", configText, self.timer.description, (configText.extendableSize, self.keyRight)) + config.timerentry.description = configElement_nonSave("config.timerentry.description", configText, self.timer.description, (configText.extendableSize, self.keyRightCallback)) config.timerentry.repeated = configElement_nonSave("config.timerentry.repeated", configSelection, 0, ("daily", "weekly", "Mon-Fri", "user-defined")) @@ -71,12 +71,12 @@ class TimerEntry(Screen): if (config.timerentry.enddate.value < config.timerentry.startdate.value): config.timerentry.enddate.value = config.timerentry.startdate.value config.timerentry.enddate.change() - #FIXME invalidate the config-entry... for redrawing purposes - HOW? + self["config"].invalidate(config.timerentry.enddate) if (configElement.getConfigPath() == "config.timerentry.enddate"): if (config.timerentry.enddate.value < config.timerentry.startdate.value): config.timerentry.startdate.value = config.timerentry.enddate.value config.timerentry.startdate.change() - #FIXME invalidate the config-entry... for redrawing purposes - HOW? + self["config"].invalidate(config.timerentry.startdate) def createSetup(self): self.list = [] @@ -129,6 +129,12 @@ class TimerEntry(Screen): self["config"].handleKey(config.key["prevElement"]) self.newConfig() + def keyRightCallback(self, configPath): + currentConfigPath = self["config"].getCurrent()[1].parent.getConfigPath() + # check if we are still on the same config entry + if (currentConfigPath == configPath): + self.keyRight() + def keyRight(self): self["config"].handleKey(config.key["nextElement"]) self.newConfig()