switchers: fix regression that breaked them (fixes issue #113)

This commit is contained in:
jean-emmanuel 2017-11-10 09:09:41 +01:00
parent 3e4a8ecba8
commit ebdd0f223e
2 changed files with 2 additions and 1 deletions

View file

@ -5,6 +5,7 @@
- bug fixes
- cli: broken long flag `--no-gui`
- headless: when running with `node`, errors don't stop the server; when running with `electron` (default), errors are logged in the console instead of being showed in a dialog window
- switcher widgets regression (broken)
- midi
- float values are now allowed and automatically rounded
- misc

View file

@ -30,7 +30,7 @@ module.exports = class _switchers_base extends _widgets_base {
if (widget && this.value._selected !== false && this.value[this.value._selected] && widget._isSwitcher !== true && this.isWatching(id, widget)) {
this.value[this.value._selected][id] = widget.abstract.getValue()
this.value[this.value._selected][id] = widget.getValue()
}