From 24c9ccfac0170047ad917b94e287c06cc669bc0e Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Thu, 9 Jan 2025 12:10:42 +0100 Subject: [PATCH] playlist: Set playlist index after resuming fixes current track selection in Playlist Viewer when stopped Change-Id: I3d1fa28a4bf2d631918e159a3fd8025c17979833 --- apps/playlist.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/playlist.c b/apps/playlist.c index bd0b6a9946..5a9027fd9d 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -3532,6 +3532,9 @@ int playlist_resume(void) } } + if (global_status.resume_index != -1) + playlist->index = global_status.resume_index; + out: playlist_write_unlock(playlist); dc_thread_start(playlist, true);