From 6f6ef4aa5a1e58b6b44f7ea1a80dcb19cc5a294d Mon Sep 17 00:00:00 2001 From: bordun Date: Sat, 24 Apr 2021 11:54:37 +0200 Subject: [PATCH] remote control: add `/STATE/SEND` command --- CHANGELOG.md | 3 +++ resources/docs/docs/remote-control.md | 7 +++++++ src/client/remote-control.js | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 23713348..e8b4dd70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,9 @@ - tree: add icons before widget ids depending on the category - tree: activate tab when selecting it in the project tree +- remote control + - add `/STATE/SEND` command + ## 1.9.1 - bug fixes diff --git a/resources/docs/docs/remote-control.md b/resources/docs/docs/remote-control.md index d2859a85..0296f205 100644 --- a/resources/docs/docs/remote-control.md +++ b/resources/docs/docs/remote-control.md @@ -181,6 +181,13 @@ Save the state of all widgets in the temporary slot. Reload saved state from the temporary slot. + +---- + +#### `/STATE/SEND` + +Make all widgets send their current value. + ---- #### `/STATE/OPEN path.state` diff --git a/src/client/remote-control.js b/src/client/remote-control.js index 42b9e7b1..784bea86 100644 --- a/src/client/remote-control.js +++ b/src/client/remote-control.js @@ -222,6 +222,11 @@ var callbacks = { stateManager.quickLoad() + }, + '/STATE/SEND': function(args) { + + stateManager.send() + }, '/STATE/OPEN': function(args) {