Skip to content

Commit

Permalink
remove check for external playlist
Browse files Browse the repository at this point in the history
  • Loading branch information
huynhsontung committed Dec 12, 2023
1 parent d055a02 commit 9498e73
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Screenbox.Core/ViewModels/MediaListViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ public sealed partial class MediaListViewModel : ObservableRecipient,
private object? _delayPlay;
private StorageFileQueryResult? _neighboringFilesQuery;
private object? _lastUpdated;
private bool _isExternalPlaylist;
private CancellationTokenSource? _cts;

private const int MediaBufferCapacity = 5;
Expand Down Expand Up @@ -523,7 +522,6 @@ private void Clear()

private void ClearPlaylist()
{
_isExternalPlaylist = false;
_shuffleBackup = null;

foreach (MediaViewModel item in Items)
Expand Down Expand Up @@ -637,7 +635,7 @@ private void OnEndReached(IMediaPlayer sender, object? args)
sender.Position = TimeSpan.Zero;
break;
default:
if (Items.Count > 1 && !_isExternalPlaylist) _ = NextAsync();
if (Items.Count > 1) _ = NextAsync();
break;
}
});
Expand Down

0 comments on commit 9498e73

Please sign in to comment.