Solving empty playlist message.

This commit is contained in:
Anonymus Raccoon
2019-06-09 23:55:18 +02:00
parent 80079c672f
commit 8173ecc278
2 changed files with 2 additions and 2 deletions

View File

@@ -643,7 +643,7 @@ namespace Opus.Api
});
if (playlists.Count == 0)
return (null, "EMPTY");
return (null, null);
else
return (playlists, null);
}

View File

@@ -91,7 +91,7 @@ namespace Opus.Fragments
if(error == null)
{
if (loc == null || loc.Count == 0) //Every local playlist is a synced one
LocalPlaylists.Add(new PlaylistItem("EMPTY", -1) { Owner = GetString(Resource.String.local_playlist_empty) });
LocalPlaylists.Add(new PlaylistItem("EMPTY", -1) { Owner = Resources.GetString(Resource.String.local_playlist_empty) });
else
LocalPlaylists.AddRange(loc);
}