aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-02-03 20:19:24 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-02-03 20:19:24 +0000
commitf6dc37c0407788a0fca5ed31a40fffabce213ef0 (patch)
tree45778875ffb20fa506e55ab30f9faf29c55e924c /lib/python/Screens
parentaeef9973a02495fbdedb283493e2de8688dad40a (diff)
downloadenigma2-f6dc37c0407788a0fca5ed31a40fffabce213ef0.tar.gz
enigma2-f6dc37c0407788a0fca5ed31a40fffabce213ef0.zip
ask before stopping timeshift
Diffstat (limited to 'lib/python/Screens')
-rw-r--r--lib/python/Screens/InfoBarGenerics.py10
1 files changed, 10 insertions, 0 deletions
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