aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/InfoBarGenerics.py
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-07-12 11:03:52 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-07-12 11:03:52 +0000
commit9e0783f71e37ee01c3e4861392234221cec323ce (patch)
tree7fcb1b2567f37d8dd7e2eb04d41f0868125a54e2 /lib/python/Screens/InfoBarGenerics.py
parent633c730e5feed206333c5174d53c6384c08047b2 (diff)
downloadenigma2-9e0783f71e37ee01c3e4861392234221cec323ce.tar.gz
enigma2-9e0783f71e37ee01c3e4861392234221cec323ce.zip
fix non working timeshift stop when press the TV Button
Diffstat (limited to 'lib/python/Screens/InfoBarGenerics.py')
-rw-r--r--lib/python/Screens/InfoBarGenerics.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py
index 99819fae..7f9cafee 100644
--- a/lib/python/Screens/InfoBarGenerics.py
+++ b/lib/python/Screens/InfoBarGenerics.py
@@ -903,9 +903,9 @@ class InfoBarTimeshift:
print "enable timeshift"
ts = self.getTimeshift()
if ts is None:
- self.session.open(MessageBox, _("Timeshift not possible!"), MessageBox.TYPE_ERROR)
- print "no ts interface"
- return
+# self.session.open(MessageBox, _("Timeshift not possible!"), MessageBox.TYPE_ERROR)
+# print "no ts interface"
+ return 0;
if self.timeshift_enabled:
print "hu, timeshift already enabled?"
@@ -913,7 +913,7 @@ class InfoBarTimeshift:
if not ts.startTimeshift():
import time
self.timeshift_enabled = 1
-
+
# we remove the "relative time" for now.
#self.pvrStateDialog["timeshift"].setRelative(time.time())
@@ -928,11 +928,11 @@ class InfoBarTimeshift:
def stopTimeshift(self):
if not self.timeshift_enabled:
- return
+ return 0
print "disable timeshift"
ts = self.getTimeshift()
if ts is None:
- return
+ return 0
self.session.openWithCallback(self.stopTimeshiftConfirmed, MessageBox, _("Stop Timeshift?"), MessageBox.TYPE_YESNO)
def stopTimeshiftConfirmed(self, confirmed):
@@ -1187,7 +1187,7 @@ class InfoBarInstantRecord:
except:
self.session.open(MessageBox, _("No HDD found or HDD not initialized!"), MessageBox.TYPE_ERROR)
return
-
+
if self.isInstantRecordRunning():
self.session.openWithCallback(self.recordQuestionCallback, ChoiceBox, title=_("A recording is currently running.\nWhat do you want to do?"), list=[(_("stop recording"), "stop"), (_("change recording (duration)"), "changeduration"), (_("add recording (indefinitely)"), "indefinitely"), (_("add recording (stop after current event)"), "event"), (_("add recording (enter recording duration)"), "manualduration"), (_("do nothing"), "no")])
else: