Ignore a few more messages for resending patch to remote
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
2c3ab95472
commit
1ddcdee363
2 changed files with 8 additions and 1 deletions
|
|
@ -266,6 +266,7 @@ native: $(TARGETS)
|
||||||
lv2: $(TARGETS)
|
lv2: $(TARGETS)
|
||||||
$(MAKE) lv2 -C Cardinal
|
$(MAKE) lv2 -C Cardinal
|
||||||
$(MAKE) lv2 -C CardinalFX $(CARDINAL_FX_ARGS)
|
$(MAKE) lv2 -C CardinalFX $(CARDINAL_FX_ARGS)
|
||||||
|
$(MAKE) lv2 -C CardinalMini
|
||||||
$(MAKE) lv2 -C CardinalSynth $(CARDINAL_SYNTH_ARGS)
|
$(MAKE) lv2 -C CardinalSynth $(CARDINAL_SYNTH_ARGS)
|
||||||
|
|
||||||
vst2: $(TARGETS)
|
vst2: $(TARGETS)
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,7 @@
|
||||||
#include "../CardinalCommon.hpp"
|
#include "../CardinalCommon.hpp"
|
||||||
#include "../CardinalRemote.hpp"
|
#include "../CardinalRemote.hpp"
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
namespace rack {
|
namespace rack {
|
||||||
namespace app {
|
namespace app {
|
||||||
|
|
@ -215,7 +216,12 @@ void Scene::step() {
|
||||||
internal->lastSceneChangeTime = time;
|
internal->lastSceneChangeTime = time;
|
||||||
} else if (internal->historyActionIndex != actionIndex && actionIndex > 0 && time - internal->lastSceneChangeTime >= 1.0) {
|
} else if (internal->historyActionIndex != actionIndex && actionIndex > 0 && time - internal->lastSceneChangeTime >= 1.0) {
|
||||||
const std::string& name(APP->history->actions[actionIndex - 1]->name);
|
const std::string& name(APP->history->actions[actionIndex - 1]->name);
|
||||||
if (/*std::abs(internal->historyActionIndex = actionIndex) > 1 ||*/ name != "move knob") {
|
static const std::vector<std::string> 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());
|
printf("action '%s'\n", APP->history->actions[actionIndex - 1]->name.c_str());
|
||||||
remoteUtils::sendFullPatchToRemote(remoteDetails);
|
remoteUtils::sendFullPatchToRemote(remoteDetails);
|
||||||
window::generateScreenshot();
|
window::generateScreenshot();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue