aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-11-25 23:29:41 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-11-25 23:29:41 +0000
commitaa81a977eb04ea3591a8ec830959e829c6bf66d1 (patch)
treed739289f9734d8fcb4be2b11186cc05044f483b1 /lib/python
parentbcd7710513b1dcf713807530318c33832de962d6 (diff)
downloadenigma2-aa81a977eb04ea3591a8ec830959e829c6bf66d1.tar.gz
enigma2-aa81a977eb04ea3591a8ec830959e829c6bf66d1.zip
instant record: fix detection if already running
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/InfoBarGenerics.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py
index 4f754728..671c7aa2 100644
--- a/lib/python/Screens/InfoBarGenerics.py
+++ b/lib/python/Screens/InfoBarGenerics.py
@@ -421,11 +421,17 @@ class InfoBarInstantRecord:
self["BlinkingPoint"].setConnect(lambda: self.recording.isRunning())
#self["BlinkingPoint"].startBlinking()
+ def isInstantRecordRunning(self):
+ if self.recording != None:
+ if self.recording.isRunning():
+ return True
+ return False
+
def recordQuestionCallback(self, answer):
if answer == False:
return
- if self.recording != None:
+ if self.isInstantRecordRunning():
self.stopCurrentRecording()
else:
self.startInstantRecording()
@@ -437,7 +443,7 @@ class InfoBarInstantRecord:
self.session.open(MessageBox, "No HDD found!")
return
- if self.recording != None:
+ if self.isInstantRecordRunning():
self.session.openWithCallback(self.recordQuestionCallback, MessageBox, _("Do you want to stop the current\n(instant) recording?"))
else:
self.session.openWithCallback(self.recordQuestionCallback, MessageBox, _("Start recording?"))