Skip to content

Commit

Permalink
Correct inverted logic for, and options which limitEvent
Browse files Browse the repository at this point in the history
(cherry picked from commit 1f7c647)
  • Loading branch information
original-birdman authored and Ev0-BH committed Jan 24, 2024
1 parent 3d4ed25 commit 07fe79e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/python/Screens/InfoBarGenerics.py
Expand Up @@ -3515,7 +3515,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 @@ -3608,7 +3608,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 07fe79e

Please sign in to comment.