+ if self.is_active:
+ self["current_status"].setText(_("Timer status:") + " " + _("Enabled"))
+ else:
+ self["current_status"].setText(_("Timer status:") + " " + _("Disabled"))
+
+ if self.is_active:
+ self.time = self.session.nav.SleepTimer.getCurrentSleepTime()
+ else:
+ self.time = config.SleepTimer.defaulttime.value
+ self["input"] = Input(text = str(self.time), maxSize = False, type = Input.NUMBER)
+
+ self.status = True