- if self.session is not None:
- self.session.open(Standby, self)
- elif self.afterEvent == AFTEREVENT.DEEPSTANDBY:
- quitMainloop(1)
+ global inStandby
+ if not inStandby:
+ Notifications.AddNotificationWithCallback(self.sendStandbyNotification, MessageBox, _("A finished record timer wants to set your\nDreambox to standby. Do that now?"), timeout = 20)
+ if self.afterEvent == AFTEREVENT.DEEPSTANDBY:
+ global inTryQuitMainloop
+ if not inTryQuitMainloop:
+ Notifications.AddNotificationWithCallback(self.sendTryQuitMainloopNotification, MessageBox, _("A finished record timer wants to shut down\nyour Dreambox. Shutdown now?"), timeout = 20)