'Core Updater' and 'Content Downloader' returns normally now

This commit is contained in:
twinaphex 2017-01-07 10:24:05 +01:00
parent a3c334e6c1
commit 01bd63cab9

View File

@ -68,7 +68,17 @@ static int action_cancel_pop_default(const char *path,
static int action_cancel_core_content(const char *path,
const char *label, unsigned type, size_t idx)
{
menu_entries_flush_stack(msg_hash_to_str(MENU_ENUM_LABEL_ADD_CONTENT_LIST), 0);
const char *menu_label = NULL;
menu_entries_get_last_stack(NULL, &menu_label, NULL, NULL, NULL);
if (string_is_equal(menu_label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_CORE_UPDATER_LIST)))
menu_entries_flush_stack(msg_hash_to_str(MENU_ENUM_LABEL_ONLINE_UPDATER), 0);
else if (string_is_equal(menu_label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_CORE_CONTENT_DIRS_LIST)))
menu_entries_flush_stack(msg_hash_to_str(MENU_ENUM_LABEL_ONLINE_UPDATER), 0);
else
menu_entries_flush_stack(msg_hash_to_str(MENU_ENUM_LABEL_ADD_CONTENT_LIST), 0);
return 0;
}