Merge pull request #867 from dweymouth/fix/no-playback-on-restore

Prevent scrobbling and short playback artifacts when loading the app with previous track paused
This commit is contained in:
Drew Weymouth
2026-03-05 07:06:40 -08:00
committed by GitHub
5 changed files with 118 additions and 16 deletions
+4 -1
View File
@@ -47,7 +47,10 @@ func NewBottomPanel(pm *backend.PlaybackManager, im *backend.ImageManager, contr
pm.OnPaused(util.FyneDoFunc(func() { bp.Controls.SetPlaying(false) }))
pm.OnPlaying(util.FyneDoFunc(func() { bp.Controls.SetPlaying(true) }))
pm.OnStopped(util.FyneDoFunc(func() { bp.Controls.SetPlaying(false) }))
pm.OnStopped(util.FyneDoFunc(func() {
bp.Controls.SetPlaying(false)
bp.Controls.UpdatePlayTime(0, 0)
}))
bp.NowPlaying = widgets.NewNowPlayingCard()
bp.NowPlaying.ShowAlbumYear = cfg.AlbumsPage.ShowYears