mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
chore: fix while loading playlists/album already playing ones doesn't get cleared
This commit is contained in:
parent
2f46fa32f1
commit
2ce4853fd1
@ -287,6 +287,10 @@ class AudioPlayerNotifier extends Notifier<AudioPlayerState> {
|
||||
await ref.read(sourcedTrackProvider(intendedActiveTrack).future);
|
||||
}
|
||||
|
||||
if(medias.isEmpty) return;
|
||||
|
||||
await removeCollections(state.collections);
|
||||
|
||||
await audioPlayer.openPlaylist(
|
||||
medias,
|
||||
initialIndex: initialIndex,
|
||||
|
@ -97,7 +97,7 @@ class AuthenticationNotifier extends AsyncNotifier<AuthenticationTableData?> {
|
||||
|
||||
await database
|
||||
.into(database.authenticationTable)
|
||||
.insert(refreshedCredentials);
|
||||
.insertOnConflictUpdate(refreshedCredentials);
|
||||
}
|
||||
|
||||
Future<AuthenticationTableCompanion> credentialsFromCookie(
|
||||
|
Loading…
Reference in New Issue
Block a user