flush config (to flash) after leave wizard
[enigma2.git] / lib / python / Screens / InfoBarGenerics.py
index 556e76804845110b97048768f310e45b10ac8edc..499d97232f3a3d5d738a81f9852f98ace2bb7761 100644 (file)
@@ -840,6 +840,16 @@ class InfoBarTimeshift:
                ts = self.getTimeshift()
                if ts is None:
                        return
+               self.session.openWithCallback(self.stopTimeshiftConfirmed, MessageBox, _("Stop Timeshift?"), MessageBox.TYPE_YESNO)
+
+       def stopTimeshiftConfirmed(self, confirmed):
+               if not confirmed:
+                       return
+
+               ts = self.getTimeshift()
+               if ts is None:
+                       return
+
                ts.stopTimeshift()
                self.timeshift_enabled = 0