- if config.SleepTimer.ask.value and not inStandby:
- Notifications.AddNotificationWithCallback(self.standby, MessageBox, _("A sleep timer want's to set your\nDreambox to standby. Do that now?"), timeout = 20)
+ if config.SleepTimer.ask.value and not Screens.Standby.inStandby:
+ Notifications.AddNotificationWithCallback(self.standby, MessageBox, _("A sleep timer wants to set your\nDreambox to standby. Do that now?"), timeout = 20)
else:
self.standby(True)
else:
self.standby(True)
@@ -39,39+41,34 @@ class SleepTimerEntry(timer.TimerEntry):