From d7a1e08ace691243c01d9fc410e4cbd9cb42f755 Mon Sep 17 00:00:00 2001 From: Stephane Letz Date: Tue, 8 Sep 2020 14:38:31 +0200 Subject: [PATCH] More needed reset in UI. --- src/FaustEngine.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/FaustEngine.cpp b/src/FaustEngine.cpp index e40ec7c..52f1027 100644 --- a/src/FaustEngine.cpp +++ b/src/FaustEngine.cpp @@ -96,6 +96,7 @@ struct RackUI : public GenericUI block->switchLights[index-1][0] = *zone; }); } + fKey = fValue = ""; } void addCheckButton(const char* label, FAUSTFLOAT* zone) @@ -121,6 +122,7 @@ struct RackUI : public GenericUI fCheckBoxes[zone].fLastButton = button; }); } + fKey = fValue = ""; } void addVerticalSlider(const char* label, FAUSTFLOAT* zone, FAUSTFLOAT init, FAUSTFLOAT min, FAUSTFLOAT max, FAUSTFLOAT step) @@ -149,6 +151,7 @@ struct RackUI : public GenericUI fConverters.push_back(converter); } fScale = "lin"; + fKey = fValue = ""; } void addBarGraph(FAUSTFLOAT* zone) @@ -167,6 +170,7 @@ struct RackUI : public GenericUI } else if ((fKey == "switchlight_blue") && (index != -1)) { fUpdateFunOut.push_back([=] (ProcessBlock* block) { block->switchLights[index-1][2] = *zone; }); } + fKey = fValue = ""; } void addHorizontalBargraph(const char* label, FAUSTFLOAT* zone, FAUSTFLOAT min, FAUSTFLOAT max)