- if config.SleepTimer.ask.value:
- Notifications.AddNotificationWithCallback(self.shutdown, MessageBox, _("A sleep timer want's to shut down") + "\n" + _("your Dreambox. Shutdown now?"), timeout = 20)
+ global inTryQuitMainloop
+ if config.SleepTimer.ask.value and not inTryQuitMainloop:
+ Notifications.AddNotificationWithCallback(self.shutdown, MessageBox, _("A sleep timer wants to shut down\nyour Dreambox. Shutdown now?"), timeout = 20)