Close runtime detail menus when standby returns to page one
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
############################################################
|
||||
|
||||
substitutions:
|
||||
SCREEN_FIRMWARE_VERSION: "0.2.1"
|
||||
SCREEN_FIRMWARE_VERSION: "0.2.2"
|
||||
DYNAMIC_TILES: "false"
|
||||
DASHBOARD_INBOX_INTERNAL: "true"
|
||||
DEVICE_NAME: "cyd-new"
|
||||
@@ -960,6 +960,8 @@ api:
|
||||
cfg.night_enabled, cfg.night_start, cfg.night_end, cfg.night_brightness,
|
||||
cfg.show_clock, cfg.clock_24h, cfg.home_on_standby,
|
||||
(unsigned)(millis() - id(last_touch_ms)), id(display_dimmed));
|
||||
ESP_LOGI("ui_diag", "navigation page=%d runtime_detail=%d", id(tile_page),
|
||||
runtime_tiles::detail_root && !lv_obj_has_flag(runtime_tiles::detail_root, LV_OBJ_FLAG_HIDDEN));
|
||||
lv_area_t nav, grid;
|
||||
lv_obj_update_layout(id(home_page)->obj);
|
||||
lv_obj_get_coords(id(page_next), &nav);
|
||||
@@ -4699,6 +4701,9 @@ script:
|
||||
id(display_dimmed) = true;
|
||||
id(apply_screen_settings).execute();
|
||||
if (screen_settings::current.home_on_standby) {
|
||||
// Runtime detail cards live above the tile grid, so paging alone cannot close them.
|
||||
runtime_tiles::hide_detail();
|
||||
id(active_entity).clear();
|
||||
id(tile_page) = 0;
|
||||
id(show_tile_page).execute();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user