Updated certain events to have more concrete event arguments. Added try-catch block around playlist save logic. Added DispatchQueue where necessary.
This commit is contained in:
@@ -274,7 +274,6 @@ public partial class PlaylistDetailViewModel : ViewModelBase
|
||||
private void OnPlaylistChanged(object? sender, EventArgs e)
|
||||
{
|
||||
Playlist?.PlaylistUpdated -= OnPlaylistUpdated;
|
||||
//Playlist = _audioPlayer.Playlist;
|
||||
Playlist = _playlistManager.CurrentPlaylist;
|
||||
Playlist?.PlaylistUpdated += OnPlaylistUpdated;
|
||||
|
||||
@@ -318,9 +317,9 @@ public partial class PlaylistDetailViewModel : ViewModelBase
|
||||
UpdateFilteredSongs();
|
||||
}
|
||||
|
||||
private void OnPlayingSongChanged(object? sender, EventArgs e)
|
||||
private void OnPlayingSongChanged(object? sender, PlayingSongChangedEventArgs e)
|
||||
{
|
||||
PlayingSong = _audioPlayer.PlayingSong;
|
||||
PlayingSong = e.NewSong;
|
||||
|
||||
if (_isUserInitiatingSongChange)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user