From 1adc2ff9305a95dd0b5c8c15288857c1cf1d58ce Mon Sep 17 00:00:00 2001 From: zb3 Date: Fri, 5 Apr 2024 18:52:50 +0200 Subject: [PATCH] Make loadURIParams set input non-silently Silent input changes might be overwritten due to the debounce logic present inside inputChange. --- src/web/App.mjs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/web/App.mjs b/src/web/App.mjs index 8dcb959a..e5989fe4 100755 --- a/src/web/App.mjs +++ b/src/web/App.mjs @@ -236,7 +236,7 @@ class App { action: "setInput", data: { inputNum: inputNum, - silent: true + silent: false } }); } @@ -541,7 +541,11 @@ class App { } this.autoBakePause = false; - window.dispatchEvent(this.manager.statechange); + + // Dispatch stateChange only if not done by setInput + if (this.uriParams.input) { + window.dispatchEvent(this.manager.statechange); + } }