Reduce direct dependency on Player even more

This commit is contained in:
Michael Manganiello
2023-06-18 22:45:05 -03:00
parent 4629ede7a7
commit 7161dd40a9
3 changed files with 36 additions and 23 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ func NewBottomPanel(p *player.Player, pm *backend.PlaybackManager, contr *contro
p.OnStopped(func() {
bp.Controls.SetPlaying(false)
})
p.OnLoopModeChanged(func(mode string) {
pm.OnLoopModeChange(func(mode string) {
bp.Controls.SetLoopMode(mode)
})