Merge pull request #334 from adamantike/fix/mpris-sync-loop-mode
fix: Enable Loop mode sync for MPRIS
This commit is contained in:
@@ -73,6 +73,11 @@ func NewMPRISHandler(playerName string, pm *PlaybackManager) *MPRISHandler {
|
|||||||
m.evt.Player.OnVolume()
|
m.evt.Player.OnVolume()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
pm.OnLoopModeChange(func(loopMode LoopMode) {
|
||||||
|
if m.connErr == nil {
|
||||||
|
m.evt.Player.OnOptions()
|
||||||
|
}
|
||||||
|
})
|
||||||
emitPlayStatus := func() {
|
emitPlayStatus := func() {
|
||||||
if m.connErr == nil {
|
if m.connErr == nil {
|
||||||
m.evt.Player.OnPlayPause()
|
m.evt.Player.OnPlayPause()
|
||||||
|
|||||||
Reference in New Issue
Block a user