Skip to content

Commit

Permalink
Correct inverted logic for, and options which limitEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
original-birdman authored and Huevos committed Jan 24, 2024
1 parent 59d908a commit 1f7c647
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/python/Screens/InfoBarGenerics.py
Expand Up @@ -3359,7 +3359,7 @@ def startInstantRecording(self, limitEvent=False):
if limitEvent:
end = info["end"]
else:
if limitEvent:
if not limitEvent:
self.session.open(MessageBox, _("No event info found, recording indefinitely."), MessageBox.TYPE_INFO, simple=True)

if isinstance(serviceref, eServiceReference):
Expand Down Expand Up @@ -3452,7 +3452,7 @@ def recordQuestionCallback(self, answer):
self.deleteRecording = True
self.stopAllCurrentRecordings(list)
elif answer[1] in ("indefinitely", "manualduration", "manualendtime", "event"):
self.startInstantRecording(limitEvent=answer[1] in ("event", "manualendtime") or False)
self.startInstantRecording(limitEvent=answer[1] in ("manualduration", "manualendtime", "event") or False)
if answer[1] == "manualduration":
self.changeDuration(len(self.recording) - 1)
elif answer[1] == "manualendtime":
Expand Down

0 comments on commit 1f7c647

Please sign in to comment.