Skip to content

Commit

Permalink
Event number as event_nr added for items to TimerEditList screen (#4067)
Browse files Browse the repository at this point in the history
Co-authored-by: ims <[email protected]>
  • Loading branch information
2 people authored and WanWizard committed Oct 24, 2024
1 parent 90e7a54 commit 6c6472e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/python/Screens/TimerEdit.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def __init__(self, session):
self["key_info"] = StaticText(_("INFO"))

self["description"] = Label("")
self["event_nr"] = Label("")

self["actions"] = ActionMap(["OkCancelActions", "DirectionActions", "ShortcutActions", "TimerEditActions"],
{
Expand Down Expand Up @@ -167,6 +168,7 @@ def updateState(self):
cur = self["timerlist"].getCurrent()
if cur:
self["Service"].newService(cur.service_ref.ref)
self["event_nr"].setText(cur.eit if cur.eit else "")
if cur.external:
self["key_info"].setText("")
else:
Expand Down Expand Up @@ -219,6 +221,7 @@ def updateState(self):
self.key_yellow_choice = self.DISABLE
else:
self["description"].setText("")
self["event_nr"].setText("")
if self.key_red_choice != self.EMPTY:
self.removeAction("red")
self["key_red"].setText("")
Expand Down

0 comments on commit 6c6472e

Please sign in to comment.