moved logic to playbackengine, forceRestart preserves pause state

This commit is contained in:
Siiiiinth
2026-01-05 00:25:33 +01:00
parent bc472eb065
commit 81c935fdd0
3 changed files with 16 additions and 9 deletions
+6
View File
@@ -627,6 +627,12 @@ func (p *playbackEngine) handleOnTrackChange() {
p.invokeOnSongChangeCallbacks()
p.handleTimePosUpdate(false)
p.handleNextTrackUpdated()
if p.pauseAfterCurrent {
p.Pause()
p.SetPauseAfterCurrent(false)
}
}
func (p *playbackEngine) handleOnStopped() {