From f6dc37c0407788a0fca5ed31a40fffabce213ef0 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Fri, 3 Feb 2006 20:19:24 +0000 Subject: ask before stopping timeshift --- lib/python/Screens/InfoBarGenerics.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/python') 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 -- cgit v1.2.3