fix order of operations when toggling shuffle
This commit is contained in:
@@ -354,7 +354,6 @@ func (p *playbackEngine) GetTrackIdxByIdFrom(items []mediaprovider.MediaItem, id
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (p *playbackEngine) SetShuffle(shuffle bool) {
|
func (p *playbackEngine) SetShuffle(shuffle bool) {
|
||||||
|
|
||||||
if p.shuffle == shuffle {
|
if p.shuffle == shuffle {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -388,11 +387,10 @@ func (p *playbackEngine) SetShuffle(shuffle bool) {
|
|||||||
} else {
|
} else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
p.handleNextTrackUpdated()
|
|
||||||
p.nowPlayingIdx = newNowPlayingIdx
|
p.nowPlayingIdx = newNowPlayingIdx
|
||||||
|
p.handleNextTrackUpdated()
|
||||||
p.invokeNoArgCallbacks(p.onQueueChange)
|
p.invokeNoArgCallbacks(p.onQueueChange)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user