Skip to content

Commit

Permalink
fix: playlist view early loading crash
Browse files Browse the repository at this point in the history
  • Loading branch information
zznty committed Apr 23, 2024
1 parent c8b8b92 commit 220fa33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MusicX/ViewModels/PlaylistViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public async ValueTask LoadMore()
{
try
{
if (Tracks.Count >= Playlist.Count)
if (Tracks.Count == 0 || Tracks.Count >= Playlist.Count)
return;
VisibleLoadingMore = Visibility.Visible;
var response = await vkService.AudioGetAsync(Playlist.Id, Playlist.OwnerId, Playlist.AccessKey, Tracks.Count, 40);
Expand Down

0 comments on commit 220fa33

Please sign in to comment.