Skip to content

Commit

Permalink
Fixing playlist enumeration issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tstavropoulos committed Aug 8, 2019
1 parent 1a0c3a0 commit fe1ef9e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions MusicPlayer/Core/DBCommands/SongCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ public IList<DeredundafierDTO> GetDeepDeredundancyTargets()
}
}

targets.Sort((a, b) => a.Name.CompareTo(b.Name));

return targets;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void IPlaylistRequestHandler.SavePlaylistAs(string title, IEnumerable<PlaylistSo

IEnumerable<PlaylistTuple> IPlaylistRequestHandler.GetPlaylistInfo()
{
return db.Playlists.Where(x => x.Title != "Default")
return db.Playlists.Where(x => x.Title != "Default").ToArray()
.Select(x => new PlaylistTuple(x.Title, x.PlaylistSongs.Count()));
}

Expand Down
4 changes: 2 additions & 2 deletions MusicPlayer/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.8.23.0")]
[assembly: AssemblyFileVersion("0.8.23.0")]
[assembly: AssemblyVersion("0.8.24.0")]
[assembly: AssemblyFileVersion("0.8.24.0")]
[assembly: Guid("C6D85D0B-5661-41EE-9405-7DFCF7E63798")]

0 comments on commit fe1ef9e

Please sign in to comment.