nyx: use the now exported window custom action
This commit is contained in:
@@ -42,8 +42,7 @@ static lv_res_t (*emummc_tools)(lv_obj_t *btn);
|
|||||||
|
|
||||||
static lv_res_t _action_emummc_window_close(lv_obj_t *btn)
|
static lv_res_t _action_emummc_window_close(lv_obj_t *btn)
|
||||||
{
|
{
|
||||||
lv_win_close_action(btn);
|
nyx_win_close_action_custom(btn);
|
||||||
close_btn = NULL;
|
|
||||||
|
|
||||||
// Delete and relaunch main emuMMC window.
|
// Delete and relaunch main emuMMC window.
|
||||||
lv_obj_del(emummc_manage_window);
|
lv_obj_del(emummc_manage_window);
|
||||||
|
|||||||
@@ -1168,13 +1168,11 @@ static lv_res_t _action_win_nyx_options_close(lv_obj_t *btn)
|
|||||||
lv_obj_set_opa_scale(status_bar.mid, LV_OPA_0);
|
lv_obj_set_opa_scale(status_bar.mid, LV_OPA_0);
|
||||||
lv_obj_set_click(status_bar.mid, false);
|
lv_obj_set_click(status_bar.mid, false);
|
||||||
|
|
||||||
lv_win_close_action(btn);
|
lv_res_t res = nyx_win_close_action_custom(btn);
|
||||||
|
|
||||||
close_btn = NULL;
|
|
||||||
|
|
||||||
_check_nyx_changes();
|
_check_nyx_changes();
|
||||||
|
|
||||||
return LV_RES_INV;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
lv_res_t create_win_nyx_options(lv_obj_t *parrent_btn)
|
lv_res_t create_win_nyx_options(lv_obj_t *parrent_btn)
|
||||||
|
|||||||
Reference in New Issue
Block a user