Highlight active playlist. Various optimizations and fixes.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user