Highlight active playlist. Various optimizations and fixes.

This commit is contained in:
2026-08-05 00:50:56 -04:00
parent 3c3cf37cd5
commit 1d45826c38
14 changed files with 327 additions and 55 deletions

View File

@@ -173,7 +173,7 @@ public class AudioPlayer : IAudioPlayer
return;
}
int currentIndex = Playlist.Songs.IndexOf(CurrentPlaylistSong);
int currentIndex = Playlist.IndexOf(CurrentPlaylistSong);
int nextIndex = currentIndex + 1;
if (nextIndex > Playlist.Songs.Count - 1)
@@ -200,7 +200,7 @@ public class AudioPlayer : IAudioPlayer
return;
}
int currentIndex = Playlist.Songs.IndexOf(CurrentPlaylistSong);
int currentIndex = Playlist.IndexOf(CurrentPlaylistSong);
int nextIndex = currentIndex - 1;
if (nextIndex < 0)
@@ -233,7 +233,7 @@ public class AudioPlayer : IAudioPlayer
{
if (Playlist == null || Playlist.Songs.Contains(song) == false)
{
Playlist? newPlaylist = _playlistManager.GetPlaylist(song);
Playlist? newPlaylist = _playlistManager.FindPlaylistContaining(song);
if (newPlaylist == null)
return false;