Skip to content

Commit e2ff006

Browse files
committed
Single-click playlist Explore fixes
1 parent 05b24cc commit e2ff006

4 files changed

Lines changed: 57 additions & 1 deletion

File tree

menu/drivers/materialui.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10409,7 +10409,21 @@ static enum menu_action materialui_parse_menu_entry_action(
1040910409
if ( config_get_ptr()->bools.input_menu_singleclick_playlists
1041010410
&& ( mui->flags & MUI_FLAG_IS_PLAYLIST
1041110411
|| mui->flags & MUI_FLAG_IS_EXPLORE_LIST))
10412+
{
10413+
if (mui->flags & MUI_FLAG_IS_EXPLORE_LIST)
10414+
{
10415+
#if defined(HAVE_LIBRETRODB)
10416+
menu_entry_t entry;
10417+
MENU_ENTRY_INITIALIZE(entry);
10418+
menu_entry_get(&entry, 0, menu_st->selection_ptr, NULL, true);
10419+
if ( entry.type == FILE_TYPE_RDB
10420+
|| entry.type == FILE_TYPE_PLAIN
10421+
|| !menu_explore_is_content_list())
10422+
break;
10423+
#endif
10424+
}
1041210425
mui->transition_alpha_lock = true;
10426+
}
1041310427
break;
1041410428
case MENU_ACTION_CANCEL:
1041510429
if (mui->flags & MUI_FLAG_SHOW_FULLSCREEN_THUMBNAILS)

menu/drivers/ozone.c

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8708,7 +8708,21 @@ static enum menu_action ozone_parse_menu_entry_action(
87088708
if ( settings->bools.input_menu_singleclick_playlists
87098709
&& ( ozone->flags & OZONE_FLAG_IS_PLAYLIST
87108710
|| ozone->flags & OZONE_FLAG_IS_EXPLORE_LIST))
8711+
{
8712+
if (ozone->flags & OZONE_FLAG_IS_EXPLORE_LIST)
8713+
{
8714+
#if defined(HAVE_LIBRETRODB)
8715+
menu_entry_t entry;
8716+
MENU_ENTRY_INITIALIZE(entry);
8717+
menu_entry_get(&entry, 0, menu_st->selection_ptr, NULL, true);
8718+
if ( entry.type == FILE_TYPE_RDB
8719+
|| entry.type == FILE_TYPE_PLAIN
8720+
|| !menu_explore_is_content_list())
8721+
break;
8722+
#endif
8723+
}
87118724
ozone->animations.list_alpha = 0.0f;
8725+
}
87128726
break;
87138727
case MENU_ACTION_CANCEL:
87148728
ozone->flags &= ~OZONE_FLAG_CURSOR_MODE;
@@ -12451,7 +12465,7 @@ static void ozone_list_open(
1245112465
ozone->sidebar_offset = -ozone->dimensions_sidebar_width;
1245212466
}
1245312467

12454-
if (animate)
12468+
if (animate && ozone->animations.list_alpha != 0.0f)
1245512469
{
1245612470
ozone->animations.list_alpha = 0.0f;
1245712471

menu/drivers/rgui.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8074,7 +8074,21 @@ static enum menu_action rgui_parse_menu_entry_action(
80748074
if ( config_get_ptr()->bools.input_menu_singleclick_playlists
80758075
&& ( rgui->flags & RGUI_FLAG_IS_PLAYLIST
80768076
|| rgui->flags & RGUI_FLAG_IS_EXPLORE_LIST))
8077+
{
8078+
if (rgui->flags & RGUI_FLAG_IS_EXPLORE_LIST)
8079+
{
8080+
#if defined(HAVE_LIBRETRODB)
8081+
menu_entry_t entry;
8082+
MENU_ENTRY_INITIALIZE(entry);
8083+
menu_entry_get(&entry, 0, menu_st->selection_ptr, NULL, true);
8084+
if ( entry.type == FILE_TYPE_RDB
8085+
|| entry.type == FILE_TYPE_PLAIN
8086+
|| !menu_explore_is_content_list())
8087+
break;
8088+
#endif
8089+
}
80778090
rgui->flags |= RGUI_FLAG_DRAW_ENTRY_SKIP;
8091+
}
80788092
break;
80798093
case MENU_ACTION_CANCEL:
80808094
if (rgui->flags & RGUI_FLAG_SHOW_FULLSCREEN_THUMBNAIL)

menu/drivers/xmb.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5847,7 +5847,21 @@ static enum menu_action xmb_parse_menu_entry_action(
58475847
/* Make transition smoother for single-click playlist launching */
58485848
if ( config_get_ptr()->bools.input_menu_singleclick_playlists
58495849
&& (xmb->is_playlist || xmb->is_explore_list))
5850+
{
5851+
if (xmb->is_explore_list)
5852+
{
5853+
#if defined(HAVE_LIBRETRODB)
5854+
menu_entry_t entry;
5855+
MENU_ENTRY_INITIALIZE(entry);
5856+
menu_entry_get(&entry, 0, menu_st->selection_ptr, NULL, true);
5857+
if ( entry.type == FILE_TYPE_RDB
5858+
|| entry.type == FILE_TYPE_PLAIN
5859+
|| !menu_explore_is_content_list())
5860+
break;
5861+
#endif
5862+
}
58505863
xmb->alpha_list = 0.0f;
5864+
}
58515865
break;
58525866
case MENU_ACTION_CANCEL:
58535867
if (xmb->is_state_slot)

0 commit comments

Comments
 (0)