Skip to content

Commit

Permalink
[InfoBarInstantRecord] hide duration if set manual end time (#3755)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima73 committed Aug 18, 2023
1 parent f982a79 commit 38e4902
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/python/Screens/InfoBarGenerics.py
Original file line number Diff line number Diff line change
Expand Up @@ -2576,9 +2576,11 @@ def startInstantRecording(self, limitEvent=""):
event = info["event"]

if limitEvent in ("event", "manualendtime", "manualduration"):
if limitEvent in ("manualendtime", "manualduration"):
message = _("Recording time has been set.")
if event:
end = info["end"]
else:
elif limitEvent == "event":
message = _("No event info found, recording indefinitely.")
if limitEvent in ("", "indefinitely"):
message = _("Recording time has been set.")
Expand Down Expand Up @@ -2625,9 +2627,9 @@ def startInstantRecording(self, limitEvent=""):
message = _("Could not record due to invalid service %s") % ref
recording.autoincrease = False
if message:
if added_timer and duration_message:
if added_timer and duration_message and limitEvent not in ("manualendtime", "manualduration"):
message += duration_message
self.session.open(MessageBox, text=message, type=MessageBox.TYPE_INFO, timeout=timeout)
self.session.open(MessageBox, text=message, type=MessageBox.TYPE_INFO, timeout=timeout, simple=True)
return added_timer

def startRecordingCurrentEvent(self):
Expand Down

0 comments on commit 38e4902

Please sign in to comment.