From: Felix Domke Date: Fri, 3 Feb 2006 20:19:24 +0000 (+0000) Subject: ask before stopping timeshift X-Git-Tag: 2.6.0~4204 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/f6dc37c0407788a0fca5ed31a40fffabce213ef0 ask before stopping timeshift --- diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py index 556e7680..499d9723 100644 --- a/lib/python/Screens/InfoBarGenerics.py +++ b/lib/python/Screens/InfoBarGenerics.py @@ -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