diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-02-03 20:19:24 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-02-03 20:19:24 +0000 |
| commit | f6dc37c0407788a0fca5ed31a40fffabce213ef0 (patch) | |
| tree | 45778875ffb20fa506e55ab30f9faf29c55e924c /lib/python/Screens | |
| parent | aeef9973a02495fbdedb283493e2de8688dad40a (diff) | |
| download | enigma2-f6dc37c0407788a0fca5ed31a40fffabce213ef0.tar.gz enigma2-f6dc37c0407788a0fca5ed31a40fffabce213ef0.zip | |
ask before stopping timeshift
Diffstat (limited to 'lib/python/Screens')
| -rw-r--r-- | lib/python/Screens/InfoBarGenerics.py | 10 |
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 |
