added shuffle button to UI + base data flow
This commit is contained in:
@@ -121,6 +121,9 @@ func NewBottomPanel(pm *backend.PlaybackManager, im *backend.ImageManager, contr
|
||||
bp.AuxControls.OnChangeAutoplay = func(autoplay bool) {
|
||||
pm.SetAutoplay(autoplay)
|
||||
}
|
||||
bp.AuxControls.OnChangeShuffle = func(shuffle bool) {
|
||||
pm.SetShuffle(shuffle)
|
||||
}
|
||||
bp.AuxControls.OnShowPlayQueue(contr.ShowPopUpPlayQueue)
|
||||
bp.AuxControls.OnShowCastMenu(contr.ShowCastMenu)
|
||||
|
||||
|
||||
@@ -111,11 +111,11 @@ func (a *AuxControls) SetLoopMode(mode backend.LoopMode) {
|
||||
}
|
||||
|
||||
func (a *AuxControls) SetShuffle(isShuffle bool) {
|
||||
if isShuffle {
|
||||
a.shuffle.Highlighted = true
|
||||
} else {
|
||||
a.shuffle.Highlighted = false
|
||||
if isShuffle == a.shuffle.Highlighted {
|
||||
return
|
||||
}
|
||||
a.shuffle.Highlighted = isShuffle
|
||||
a.shuffle.Refresh()
|
||||
}
|
||||
|
||||
func (a *AuxControls) DisableCastButton() {
|
||||
|
||||
Reference in New Issue
Block a user