notification_show minor optimization

This commit is contained in:
Edward Firmo
2024-03-11 22:49:43 +01:00
parent 5ab53b794e
commit c8bb294e5e

View File

@@ -520,13 +520,11 @@ api:
if (!id(is_uploading_tft)) {
set_component_visibility->execute("home.bt_notific", true);
goto_page->execute("notification");
timer_reset_all->execute("notification");
disp1->set_component_text_printf("notification.notifi_label", "%s", label.c_str());
display_wrapped_text->execute("notification.notifi_text01", message.c_str(), display_mode->state == 2 ? 23 : 32);
notification_label->publish_state(label.c_str());
notification_text->publish_state(message.c_str());
timer_reset_all->execute(current_page->state.c_str());
notification_unread->turn_on();
if (notification_sound->state) buzzer->play("two short:d=4,o=5,b=100:16e6,16e6");
}