fix goroutine handling for pop-up queue

This commit is contained in:
Drew Weymouth
2025-04-10 08:23:56 -07:00
parent 08d477a438
commit 765e21305a
7 changed files with 44 additions and 57 deletions
+3 -9
View File
@@ -41,15 +41,9 @@ func NewBottomPanel(pm *backend.PlaybackManager, im *backend.ImageManager, contr
})
})
pm.OnPaused(func() {
fyne.Do(func() { bp.Controls.SetPlaying(false) })
})
pm.OnPlaying(func() {
fyne.Do(func() { bp.Controls.SetPlaying(true) })
})
pm.OnStopped(func() {
fyne.Do(func() { bp.Controls.SetPlaying(false) })
})
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) }))
bp.NowPlaying = widgets.NewNowPlayingCard()
bp.NowPlaying.OnCoverTapped = func() {