Fix menu refresh in action_ok_network

This commit is contained in:
sonninnos 2023-05-21 17:49:34 +03:00 committed by LibretroAdmin
parent f11bcfa420
commit 997eae88a0
2 changed files with 6 additions and 6 deletions

View File

@ -4833,7 +4833,7 @@ static int generic_action_ok_network(const char *path,
break;
}
menu_st->flags &= ~MENU_ST_FLAG_ENTRIES_NONBLOCKING_REFRESH;
menu_st->flags |= MENU_ST_FLAG_ENTRIES_NONBLOCKING_REFRESH;
generic_action_ok_command(CMD_EVENT_NETWORK_INIT);

View File

@ -12356,8 +12356,8 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type,
menu_entries_clear(info->list);
#ifdef HAVE_NETWORKING
count = print_buf_lines(info->list, menu->core_buf, "",
(int)menu->core_len,
FILE_TYPE_DOWNLOAD_CORE_CONTENT, true, false);
(int)menu->core_len, FILE_TYPE_DOWNLOAD_CORE_CONTENT,
true, false);
if (count == 0)
menu_entries_append(info->list,
@ -12432,8 +12432,8 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type,
}
break;
case DISPLAYLIST_CORE_SYSTEM_FILES:
#ifdef HAVE_NETWORKING
menu_entries_clear(info->list);
#ifdef HAVE_NETWORKING
count = print_buf_lines(info->list, menu->core_buf, "",
(int)menu->core_len, FILE_TYPE_DOWNLOAD_CORE_SYSTEM_FILES,
true, false);
@ -12535,8 +12535,8 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type,
| MD_FLAG_NEED_PUSH;
break;
case DISPLAYLIST_THUMBNAILS_UPDATER:
#ifdef HAVE_NETWORKING
menu_entries_clear(info->list);
#ifdef HAVE_NETWORKING
count = print_buf_lines(info->list, menu->core_buf, "",
(int)menu->core_len, FILE_TYPE_DOWNLOAD_THUMBNAIL_CONTENT,
true, false);
@ -12554,8 +12554,8 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type,
#endif
break;
case DISPLAYLIST_PL_THUMBNAILS_UPDATER:
#ifdef HAVE_NETWORKING
menu_entries_clear(info->list);
#ifdef HAVE_NETWORKING
count = menu_displaylist_parse_pl_thumbnail_download_list(info->list,
settings);