From b8eff953c6ec00f85678dbd092ce97cd57beff44 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Wed, 2 Dec 2020 22:27:22 +0200 Subject: [PATCH] nyx: Utilize full shutdown based reboot for patched Erista also --- nyx/nyx_gui/frontend/gui.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nyx/nyx_gui/frontend/gui.c b/nyx/nyx_gui/frontend/gui.c index 195486a..1620c0f 100644 --- a/nyx/nyx_gui/frontend/gui.c +++ b/nyx/nyx_gui/frontend/gui.c @@ -900,7 +900,7 @@ static lv_res_t _removed_sd_action(lv_obj_t *btns, const char *txt) switch (btnidx) { case 0: - if (h_cfg.t210b01) + if (h_cfg.rcm_patched) reboot_full(); else reboot_rcm(); @@ -954,13 +954,13 @@ static lv_res_t _reboot_action(lv_obj_t *btns, const char *txt) switch (btnidx) { case 0: - if (h_cfg.t210b01) + if (h_cfg.rcm_patched) reboot_full(); else reboot_normal(); break; case 1: - if (h_cfg.t210b01) + if (h_cfg.rcm_patched) break; reboot_rcm(); break; @@ -1005,14 +1005,14 @@ static lv_res_t _create_mbox_reboot(lv_obj_t *btn) lv_obj_set_size(dark_bg, LV_HOR_RES, LV_VER_RES); static const char * mbox_btn_map[] = { "\221OFW", "\221RCM", "\221Cancel", "" }; - static const char * mbox_btn_map_t210b01[] = { "\221Reboot", "\221Cancel", "" }; + static const char * mbox_btn_map_patched[] = { "\221Reboot", "\221Cancel", "" }; lv_obj_t *mbox = lv_mbox_create(dark_bg, NULL); lv_mbox_set_recolor_text(mbox, true); lv_obj_set_width(mbox, LV_HOR_RES / 2); lv_mbox_set_text(mbox, "#FF8000 Choose where to reboot:#"); - lv_mbox_add_btns(mbox, h_cfg.t210b01 ? mbox_btn_map_t210b01 : mbox_btn_map, _reboot_action); + lv_mbox_add_btns(mbox, h_cfg.rcm_patched ? mbox_btn_map_patched : mbox_btn_map, _reboot_action); lv_obj_align(mbox, NULL, LV_ALIGN_CENTER, 0, 0); lv_obj_set_top(mbox, true);