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:
parent
0a318ce81e
commit
77cb053525
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user