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:
9
Harmonia.Core/Player/PlaylistChangedEventArgs.cs
Normal file
9
Harmonia.Core/Player/PlaylistChangedEventArgs.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using Harmonia.Core.Playlists;
|
||||
|
||||
namespace Harmonia.Core.Player;
|
||||
|
||||
public class PlaylistChangedEventArgs(Playlist? oldPlaylist, Playlist? newPlaylist) : EventArgs
|
||||
{
|
||||
public Playlist? OldPlaylist { get; } = oldPlaylist;
|
||||
public Playlist? NewPlaylist { get; } = newPlaylist;
|
||||
}
|
||||
Reference in New Issue
Block a user