nyx: fix first time config save unmounting
SD card should not get unmounted on the first boot without hekate_ipl.ini. Move sd card mounting management outside of it.
This commit is contained in:
@@ -2073,7 +2073,10 @@ static lv_res_t _save_options_action(lv_obj_t *btn)
|
||||
lv_obj_t * mbox = lv_mbox_create(lv_scr_act(), NULL);
|
||||
lv_mbox_set_recolor_text(mbox, true);
|
||||
|
||||
int res = !create_config_entry();
|
||||
int res = 0;
|
||||
|
||||
if (sd_mount())
|
||||
res = create_config_entry();
|
||||
|
||||
if (res)
|
||||
lv_mbox_set_text(mbox, "#FF8000 hekate Configuration#\n\n#96FF00 The configuration was saved to sd card!#");
|
||||
@@ -2084,6 +2087,8 @@ static lv_res_t _save_options_action(lv_obj_t *btn)
|
||||
|
||||
nyx_options_clear_ini_changes_made();
|
||||
|
||||
sd_unmount();
|
||||
|
||||
return LV_RES_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user