From 1ddcdee3630e6b5663e76ccd9680c167a8151711 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 1 Jan 2023 21:00:31 +0000 Subject: [PATCH] Ignore a few more messages for resending patch to remote Signed-off-by: falkTX --- src/Makefile | 1 + src/override/Scene.cpp | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 35270db..42c01b9 100644 --- a/src/Makefile +++ b/src/Makefile @@ -266,6 +266,7 @@ native: $(TARGETS) lv2: $(TARGETS) $(MAKE) lv2 -C Cardinal $(MAKE) lv2 -C CardinalFX $(CARDINAL_FX_ARGS) + $(MAKE) lv2 -C CardinalMini $(MAKE) lv2 -C CardinalSynth $(CARDINAL_SYNTH_ARGS) vst2: $(TARGETS) diff --git a/src/override/Scene.cpp b/src/override/Scene.cpp index 561364b..7cd9a48 100644 --- a/src/override/Scene.cpp +++ b/src/override/Scene.cpp @@ -45,6 +45,7 @@ #include "../CardinalCommon.hpp" #include "../CardinalRemote.hpp" +#include namespace rack { namespace app { @@ -215,7 +216,12 @@ void Scene::step() { internal->lastSceneChangeTime = time; } else if (internal->historyActionIndex != actionIndex && actionIndex > 0 && time - internal->lastSceneChangeTime >= 1.0) { const std::string& name(APP->history->actions[actionIndex - 1]->name); - if (/*std::abs(internal->historyActionIndex = actionIndex) > 1 ||*/ name != "move knob") { + static const std::vector ignoredNames = { + "move knob", + "move module", + "move switch", + }; + if (std::find(ignoredNames.cbegin(), ignoredNames.cend(), name) == ignoredNames.cend()) { printf("action '%s'\n", APP->history->actions[actionIndex - 1]->name.c_str()); remoteUtils::sendFullPatchToRemote(remoteDetails); window::generateScreenshot();