diff options
author | (quasar) nebula <towerofnix@gmail.com> | 2021-02-16 20:12:55 -0400 |
---|---|---|
committer | (quasar) nebula <towerofnix@gmail.com> | 2021-02-16 20:12:55 -0400 |
commit | 942c36453fc9317056791acade02067f01c1464d (patch) | |
tree | 86432ee6a5f6d7fb2bac49c42ee87ce421d6cd52 /ui.js | |
parent | 880e8b9b16930a9db78f162f37c6b729b6c9c814 (diff) |
loop queue
Diffstat (limited to 'ui.js')
-rw-r--r-- | ui.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ui.js b/ui.js index c734a74..5a8e0ad 100644 --- a/ui.js +++ b/ui.js @@ -343,6 +343,7 @@ class AppElement extends FocusElement { {divider: true}, playingTrack && {element: this.playingControl}, {element: this.loopingControl}, + {element: this.loopQueueControl}, {element: this.pauseNextControl}, {element: this.autoDJControl}, {element: this.volumeSlider}, @@ -398,6 +399,12 @@ class AppElement extends FocusElement { getEnabled: () => this.config.canControlPlayback }) + this.loopQueueControl = new ToggleControl('Loop queue when it ends?', { + setValue: val => this.SQP.setLoopQueueAtEnd(val), + getValue: () => this.SQP.loopQueueAtEnd, + getEnabled: () => this.config.canControlPlayback + }) + this.volumeSlider = new SliderElement('Volume', { setValue: val => this.SQP.setVolume(val), getValue: () => this.SQP.player.volume, |