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:
@@ -52,9 +52,9 @@ public partial class PlayingSongViewModel : ViewModelBase
|
||||
_dispatcherQueue = DispatcherQueue.GetForCurrentThread();
|
||||
}
|
||||
|
||||
private void OnAudioPlayerPlayingSongChanged(object? sender, EventArgs e)
|
||||
private void OnAudioPlayerPlayingSongChanged(object? sender, PlayingSongChangedEventArgs e)
|
||||
{
|
||||
Song = _audioPlayer.PlayingSong?.Song;
|
||||
Song = e.NewSong?.Song;
|
||||
Task.Run(UpdateImage);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user