Added playlists view context menu for rename, lock/unlock, and delete.
This commit is contained in:
@@ -35,6 +35,19 @@ public partial class PlaylistItemViewModel : ObservableObject
|
||||
}
|
||||
}
|
||||
|
||||
private bool _isLocked;
|
||||
public bool IsLocked
|
||||
{
|
||||
get
|
||||
{
|
||||
return _isLocked;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetProperty(ref _isLocked, value);
|
||||
}
|
||||
}
|
||||
|
||||
public PlaylistItemViewModel(Playlist playlist)
|
||||
{
|
||||
Playlist = playlist;
|
||||
@@ -55,6 +68,7 @@ public partial class PlaylistItemViewModel : ObservableObject
|
||||
private void UpdateMetaData()
|
||||
{
|
||||
Name = Playlist.Name ?? "Untitled Playlist";
|
||||
IsLocked = Playlist.IsLocked;
|
||||
|
||||
TimeSpan total = TimeSpan.FromSeconds(Playlist.Songs.Sum(s => s.Song.Length.TotalSeconds));
|
||||
Summary = $"{Playlist.Songs.Count} songs / {total:h\\:mm\\:ss}";
|
||||
|
||||
Reference in New Issue
Block a user