mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Implement nonblocking_refresh
This commit is contained in:
parent
cf070fa9f3
commit
e7fe92748b
@ -117,6 +117,7 @@ typedef struct
|
||||
} categories;
|
||||
|
||||
bool need_refresh;
|
||||
bool nonblocking_refresh;
|
||||
bool msg_force;
|
||||
bool push_start_screen;
|
||||
|
||||
|
@ -1567,6 +1567,8 @@ int cb_core_updater_list(void *data_, size_t len)
|
||||
menu_list_populate_generic(list, core_updater_list_path,
|
||||
core_updater_list_label, core_updater_list_type);
|
||||
|
||||
driver.menu->nonblocking_refresh = false;
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
@ -1615,6 +1617,8 @@ static int deferred_push_core_updater_list(void *data, void *userdata,
|
||||
msg_queue_push(g_extern.http.msg_queue, url_path, 0, 1);
|
||||
#endif
|
||||
|
||||
driver.menu->nonblocking_refresh = true;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -632,7 +632,7 @@ static int action_iterate_main(const char *label, unsigned action)
|
||||
return action_iterate_custom_bind(label, action);
|
||||
}
|
||||
|
||||
if (menu->need_refresh && action != MENU_ACTION_MESSAGE)
|
||||
if (menu->need_refresh && !menu->nonblocking_refresh && action != MENU_ACTION_MESSAGE)
|
||||
action = MENU_ACTION_REFRESH;
|
||||
|
||||
switch (action)
|
||||
|
Loading…
x
Reference in New Issue
Block a user