def __init__(self, session, newTimer):
self.xmlfile = Directories.resolveFilename(Directories.SCOPE_PLUGINS, "Extensions/AutoTimer/autotimerwizard.xml")
- WizardLanguage.__init__(self, session, showSteps = False, showStepSlider = False)
+ WizardLanguage.__init__(self, session, showSteps = True, showStepSlider = True)
AutoTimerEditorBase.__init__(self, newTimer)
Rc.__init__(self)
def generateTimespanList(self):
self.timespanList = [
- getConfigListEntry(_("Only match during Timespan"), self.timespan)
+ getConfigListEntry(_("Only match during timespan"), self.timespan)
]
# Only allow editing timespan when it's enabled
if self.timespan.value:
self.timespanList.extend([
- getConfigListEntry(_("Begin of Timespan"), self.timespanbegin),
- getConfigListEntry(_("End of Timespan"), self.timespanend)
+ getConfigListEntry(_("Begin of timespan"), self.timespanbegin),
+ getConfigListEntry(_("End of timespan"), self.timespanend)
])
def getConfigList(self):
return [
getConfigListEntry(_("Enabled"), self.enabled),
getConfigListEntry(_("Description"), self.name),
- getConfigListEntry(_("Match Title"), self.match),
- getConfigListEntry(_("Timer Type"), self.justplay),
+ getConfigListEntry(_("Match title"), self.match),
+ getConfigListEntry(_("Timer type"), self.justplay),
]
elif self.currStep == AutoTimerWizard.STEP_ID_TIMESPAN: # Timespan
return self.timespanList
def deleteBackward(self):
self["config"].handleKey(KEY_BACKSPACE)
+ def exitWizardQuestion(self, ret = False):
+ if ret:
+ self.doCancel = True
+ self.close()
+
def cancel(self):
self.doCancel = True
self.currStep = len(self.wizard)