From 95639d9bf169c2a7458450f3fb81d1802a1e3cc0 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Tue, 24 Feb 2026 01:25:13 +0200 Subject: [PATCH] nyx: fix off-by-one bug in emmc part manager Last step after finish do not have a UMS option, so adjust accordingly. --- nyx/nyx_gui/frontend/gui_tools_partition_manager.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nyx/nyx_gui/frontend/gui_tools_partition_manager.c b/nyx/nyx_gui/frontend/gui_tools_partition_manager.c index c597bdff..1b81ad3c 100644 --- a/nyx/nyx_gui/frontend/gui_tools_partition_manager.c +++ b/nyx/nyx_gui/frontend/gui_tools_partition_manager.c @@ -1864,6 +1864,8 @@ static lv_res_t _action_flash_android_slot_select(lv_obj_t *btn){ static lv_res_t _action_part_manager_flash_options0(lv_obj_t *btns, const char *txt) { int btn_idx = lv_btnm_get_pressed(btns); + if (part_info.emmc) + btn_idx++; switch (btn_idx) { @@ -1892,6 +1894,8 @@ static lv_res_t _action_part_manager_flash_options0(lv_obj_t *btns, const char * static lv_res_t _action_part_manager_flash_options1(lv_obj_t *btns, const char *txt) { int btn_idx = lv_btnm_get_pressed(btns); + if (part_info.emmc) + btn_idx++; switch (btn_idx) { @@ -1918,6 +1922,8 @@ static lv_res_t _action_part_manager_flash_options1(lv_obj_t *btns, const char * static lv_res_t _action_part_manager_flash_options2(lv_obj_t *btns, const char *txt) { int btn_idx = lv_btnm_get_pressed(btns); + if (part_info.emmc) + btn_idx++; switch (btn_idx) {