mirror of
https://github.com/zoriya/Opus.git
synced 2025-12-06 06:26:15 +00:00
Solving empty playlist message.
This commit is contained in:
@@ -643,7 +643,7 @@ namespace Opus.Api
|
||||
});
|
||||
|
||||
if (playlists.Count == 0)
|
||||
return (null, "EMPTY");
|
||||
return (null, null);
|
||||
else
|
||||
return (playlists, null);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user