Skip to content

Commit 69d4c9a

Browse files
committed
Single-click playlist return from invalid path
1 parent 8c39c88 commit 69d4c9a

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

menu/cbs/menu_cbs_ok.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2897,6 +2897,10 @@ static int action_ok_playlist_entry_collection(const char *path,
28972897
1, 100, true,
28982898
NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_ERROR);
28992899

2900+
/* Single-click playlist return */
2901+
if (settings->bools.input_menu_singleclick_playlists)
2902+
menu_state_get_ptr()->flags |= MENU_ST_FLAG_PENDING_CLOSE_CONTENT;
2903+
29002904
if (playlist_initialized && tmp_playlist)
29012905
{
29022906
playlist_free(tmp_playlist);

menu/menu_driver.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8022,9 +8022,7 @@ int generic_menu_entry_action(
80228022
* to playlist entry menu */
80238023
if ( ( string_is_equal(parent_label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_RPL_ENTRY_ACTIONS))
80248024
|| string_is_equal(parent_label, msg_hash_to_str(MENU_ENUM_LABEL_EXPLORE_TAB)))
8025-
&& (!string_is_empty(deferred_path)
8026-
&& !string_is_empty(content_path)
8027-
&& string_is_equal(deferred_path, content_path))
8025+
&& !string_is_empty(deferred_path)
80288026
)
80298027
{
80308028
if (string_is_equal(parent_label, msg_hash_to_str(MENU_ENUM_LABEL_EXPLORE_TAB)))

0 commit comments

Comments
 (0)