renamed stopAfterCurrent -> pauseAfterCurrent

This commit is contained in:
Siiiiinth
2026-01-03 19:21:47 +01:00
parent 3c0e9f8dc1
commit 0bdc991dc8
10 changed files with 58 additions and 59 deletions
+4 -4
View File
@@ -66,7 +66,7 @@ type playbackEngine struct {
isRadio bool
loopMode LoopMode
stopAfterCurrent bool // flag to stop playback after current track ends
pauseAfterCurrent bool // flag to pause playback after current track ends
// flags for handleOnTrackChange / handleOnStopped callbacks - reset to false in the callbacks
wasStopped bool // true iff player was stopped before handleOnTrackChange invocation
@@ -337,8 +337,8 @@ func (p *playbackEngine) Stop() error {
return p.player.Stop(false)
}
func (p *playbackEngine) SetStopAfterCurrent(stopAfterCurrent bool) {
p.stopAfterCurrent = stopAfterCurrent
func (p *playbackEngine) SetPauseAfterCurrent(pauseAfterCurrent bool) {
p.pauseAfterCurrent = pauseAfterCurrent
}
func (p *playbackEngine) Pause() error {
@@ -641,7 +641,7 @@ func (p *playbackEngine) handleOnStopped() {
p.alreadyScrobbled = false
p.wasStopped = true
p.nowPlayingIdx = -1
p.stopAfterCurrent = false
p.pauseAfterCurrent = false
}
// to be invoked as soon as the next item in the queue that should play changes