Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event number as event_nr added for items to TimerEditList screen #4067

Merged
merged 1 commit into from
Sep 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading