@@ -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 );
0 commit comments