Skip to content

Commit

Permalink
minor fix to add a timer
Browse files Browse the repository at this point in the history
  • Loading branch information
DYefremov committed Mar 4, 2024
1 parent 6aad034 commit 7bf36c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/ui/timers.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,11 @@ def on_timer_add(self, timer=None, value=None):

if p_count == 1:
service = self._app.current_services.get(model[paths][Column.FAV_ID], None)
if service:
if service and service.picon_id:
self.add_timer({"e2servicename": service.service,
"e2servicereference": service.picon_id.rstrip(".png").replace("_", ":")})
else:
self._app.show_error_message("Not allowed in this context!")
elif p_count > 1:
self._app.show_error_message("Please, select only one item!")
else:
Expand Down

0 comments on commit 7bf36c8

Please sign in to comment.