public async Task ClearQueueAsync() { if (PlaybackQueue.Count == 0) { return; } await _sqlService.DeleteTableAsync <QueueSong>(); _lookupMap.Clear(); PlaybackQueue.Clear(); }
public async Task ClearQueueAsync() { if (PlaybackQueue.Count == 0) { return; } await _bgSqlService.DeleteTableAsync <QueueSong>(); _lookupMap.Clear(); await _dispatcher.RunAsync( () => { PlaybackQueue.Clear(); ShufflePlaybackQueue.Clear(); }); }