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
|
@override
|
||||||
onInit() async {
|
onInit() async {
|
||||||
if (state.tracks.isEmpty) return null;
|
if (state.tracks.isEmpty) return null;
|
||||||
|
final oldCollections = state.collections;
|
||||||
await load(
|
await load(
|
||||||
state.tracks,
|
state.tracks,
|
||||||
initialIndex: state.active ?? 0,
|
initialIndex: state.active ?? 0,
|
||||||
autoPlay: false,
|
autoPlay: false,
|
||||||
);
|
);
|
||||||
|
state = state.copyWith(collections: oldCollections);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
Loading…
Reference in New Issue
Block a user