mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
chore:
This commit is contained in:
parent
1c89e3efb0
commit
546fafbf37
@ -462,12 +462,13 @@ class ProxyPlaylistNotifier extends PersistedStateNotifier<ProxyPlaylist>
|
||||
@override
|
||||
onInit() async {
|
||||
if (state.tracks.isEmpty) return null;
|
||||
|
||||
final oldCollections = state.collections;
|
||||
await load(
|
||||
state.tracks,
|
||||
initialIndex: state.active ?? 0,
|
||||
autoPlay: false,
|
||||
);
|
||||
state = state.copyWith(collections: oldCollections);
|
||||
}
|
||||
|
||||
@override
|
||||
|
Loading…
Reference in New Issue
Block a user