Fixed PlaylistDetailViewModels's "Playlist" object not properly synchronizing (events, locking) to the playlist manager's current playlist at constructor time.
This commit is contained in:
@@ -17,12 +17,14 @@ public class PlaylistManager : IPlaylistManager
|
||||
}
|
||||
set
|
||||
{
|
||||
Playlist? oldPlaylist = _currentPlaylist;
|
||||
_currentPlaylist = value;
|
||||
CurrentPlaylistChanged?.Invoke(this, new());
|
||||
|
||||
CurrentPlaylistChanged?.Invoke(this, new(oldPlaylist, _currentPlaylist));
|
||||
}
|
||||
}
|
||||
|
||||
public event EventHandler? CurrentPlaylistChanged;
|
||||
public event EventHandler<PlaylistChangedEventArgs>? CurrentPlaylistChanged;
|
||||
public event EventHandler<PlaylistAddedEventArgs>? PlaylistAdded;
|
||||
public event EventHandler<PlaylistRemovedEventArgs>? PlaylistRemoved;
|
||||
public event EventHandler<PlaylistSaveFailedEventArgs>? PlaylistSaveFailed;
|
||||
|
||||
Reference in New Issue
Block a user