led, text, variable: value not synchronized between different clients

This commit is contained in:
jean-emmanuel 2023-07-03 12:31:41 +02:00
parent d00b22d35e
commit 86f80b0265
4 changed files with 4 additions and 0 deletions

View file

@ -58,6 +58,7 @@ module.exports = class Led extends StaticProperties(Widget, {bypass: true, inter
if (options.sync && ret !== false) this.changed(options)
if (options.send) this.sendValue(null, {syncOnly: true})
}

View file

@ -65,6 +65,7 @@ module.exports = class Text extends StaticProperties(Widget, {bypass: true, inte
}
if (options.sync) this.changed(options)
if (options.send) this.sendValue(null, {syncOnly: true})
}

View file

@ -34,6 +34,7 @@ module.exports = class Variable extends StaticProperties(Widget, {interaction: f
this.value = v
if (options.sync) this.changed(options)
if (options.send) this.sendValue(null, {syncOnly: true})
}