1
1
mirror of https://github.com/danbee/persephone synced 2025-03-04 08:39:11 +00:00

Fix bug where current playing track was not highlighted on load

This commit is contained in:
Daniel Barber 2019-10-11 17:34:07 -04:00
parent 0a318ce81e
commit 77cb053525
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -31,6 +31,9 @@ func playerReducer(action: Action, state: PlayerState?) -> PlayerState {
App.store.dispatch(
UpdateQueuePlayerStateAction(state: state.state)
)
if let queuePos = state.status?.song {
App.store.dispatch(UpdateQueuePosAction(queuePos: queuePos))
}
}
case let action as UpdateCurrentSongAction: