Close Notification page when cleared

This commit is contained in:
Edward Firmo
2023-11-22 21:12:27 +01:00
parent 9ff6e42e8e
commit 786f7795ed

View File

@@ -2563,10 +2563,11 @@ script:
then:
- lambda: |-
disp1->send_command_printf("is_notification=0");
if (current_page->state == "home") disp1->hide_component("bt_notific");
if (current_page->state == "notification") disp1->goto_page("home");
notification_label->publish_state("");
notification_text->publish_state("");
notification_unread->turn_off();
if (current_page->state == "home") disp1->hide_component("bt_notific");
##### ADD-ONS ############################################################
##### Add-on - Climate #####