mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-12 23:45: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);
|
await ref.read(sourcedTrackProvider(intendedActiveTrack).future);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(medias.isEmpty) return;
|
||||||
|
|
||||||
|
await removeCollections(state.collections);
|
||||||
|
|
||||||
await audioPlayer.openPlaylist(
|
await audioPlayer.openPlaylist(
|
||||||
medias,
|
medias,
|
||||||
initialIndex: initialIndex,
|
initialIndex: initialIndex,
|
||||||
|
@ -97,7 +97,7 @@ class AuthenticationNotifier extends AsyncNotifier<AuthenticationTableData?> {
|
|||||||
|
|
||||||
await database
|
await database
|
||||||
.into(database.authenticationTable)
|
.into(database.authenticationTable)
|
||||||
.insert(refreshedCredentials);
|
.insertOnConflictUpdate(refreshedCredentials);
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<AuthenticationTableCompanion> credentialsFromCookie(
|
Future<AuthenticationTableCompanion> credentialsFromCookie(
|
||||||
|
Loading…
Reference in New Issue
Block a user