Skip to content

Commit cbd1c06

Browse files
committed
Playlist secondary thumbnail cycle correction
1 parent 933baca commit cbd1c06

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

menu/cbs/menu_cbs_scan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ int action_switch_thumbnail(const char *path,
139139
if (settings->uints.gfx_thumbnails)
140140
action_cycle_thumbnail(MENU_ACTION_CYCLE_THUMBNAIL_PRIMARY);
141141
else
142-
action_cycle_thumbnail(MENU_ACTION_CYCLE_THUMBNAIL_PRIMARY);
142+
action_cycle_thumbnail(MENU_ACTION_CYCLE_THUMBNAIL_SECONDARY);
143143

144144
if (menu_st->driver_ctx)
145145
{

menu/menu_driver.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7165,9 +7165,10 @@ int action_cycle_thumbnail(unsigned mode)
71657165
if (cur_primary == cur_secondary)
71667166
cur_secondary++;
71677167

7168-
/* Wrap secondary to no image, and skip logo */
7168+
/* Wrap secondary to no image, and skip logo.
7169+
* If primary disabled, wrap to first image. */
71697170
if (cur_secondary > PLAYLIST_THUMBNAIL_MODE_LAST - PLAYLIST_THUMBNAIL_MODE_OFF - 2)
7170-
cur_secondary = 0;
7171+
cur_secondary = (cur_primary) ? 0 : 1;
71717172

71727173
configuration_set_uint(settings, settings->uints.menu_left_thumbnails, cur_secondary);
71737174
}

0 commit comments

Comments
 (0)