diff --git a/CHANGELOG.md b/CHANGELOG.md index 52903ab3..79280f44 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,13 +4,14 @@ - bug fixes - widgets: dynamic `address` when `split` is `true` + - strip: missing osc properties (`address` and `preArgs`) for remote control + - switcher: update linked widgets' osc properties before sending if they depend on the switcher's value ## 0.34.3 - bug fixes - launcher: regression breaking the `port` option - - strip: missing osc properties (`address` and `preArgs`) for remote control - + ## 0.34.2 - bug fixes diff --git a/src/browser/js/app/widgets/switchers/_switchers_base.js b/src/browser/js/app/widgets/switchers/_switchers_base.js index afaaa7b3..61625596 100644 --- a/src/browser/js/app/widgets/switchers/_switchers_base.js +++ b/src/browser/js/app/widgets/switchers/_switchers_base.js @@ -83,6 +83,11 @@ module.exports = class _switchers_base extends Widget { applyState(state, options) { + + // extra sync routine to ensure linked widgets' props update before osc is sent + if (options.sync) this.changed({...options, send:false, sync:false}) + // + for (var id in state) { var value = state[id], widgets = widgetManager.getWidgetById(id)