Skip to content

Commit 05b24cc

Browse files
committed
Single-click playlist contentless core return fix
1 parent a7f1107 commit 05b24cc

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

menu/cbs/menu_cbs_ok.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5711,6 +5711,8 @@ int action_ok_close_content(const char *path, const char *label, unsigned type,
57115711
{
57125712
int ret;
57135713
struct menu_state *menu_st = menu_state_get_ptr();
5714+
bool contentless_core = false;
5715+
57145716
/* Reset navigation pointer
57155717
* > If we are returning to the quick menu, want
57165718
* the active entry to be 'Run' (first item in
@@ -5742,7 +5744,10 @@ int action_ok_close_content(const char *path, const char *label, unsigned type,
57425744

57435745
if ( string_is_equal(parent_label, msg_hash_to_str(MENU_ENUM_LABEL_CONTENTLESS_CORES_TAB))
57445746
|| string_is_equal(parent_label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_CONTENTLESS_CORES_LIST)))
5747+
{
57455748
flush_target = parent_label;
5749+
contentless_core = true;
5750+
}
57465751
}
57475752

57485753
menu_entries_flush_stack(flush_target, 0);
@@ -5755,7 +5760,7 @@ int action_ok_close_content(const char *path, const char *label, unsigned type,
57555760
}
57565761

57575762
/* Single-click playlist return */
5758-
if (config_get_ptr()->bools.input_menu_singleclick_playlists)
5763+
if (config_get_ptr()->bools.input_menu_singleclick_playlists && !contentless_core)
57595764
{
57605765
size_t new_selection = menu_st->selection_ptr;
57615766
menu_entries_pop_stack(&new_selection, 0, 0);

menu/menu_driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8060,7 +8060,7 @@ int generic_menu_entry_action(
80608060
menu_st->flags &= ~MENU_ST_FLAG_PREVENT_POPULATE;
80618061

80628062
/* Single-click playlist return */
8063-
if (settings->bools.input_menu_singleclick_playlists)
8063+
if (settings->bools.input_menu_singleclick_playlists && reset_navigation)
80648064
{
80658065
size_t new_selection = menu_st->selection_ptr;
80668066
menu_entries_pop_stack(&new_selection, 0, 0);

0 commit comments

Comments
 (0)