From 162f0ac1518576d9497f0f05f9f0ea3c78d54d9e Mon Sep 17 00:00:00 2001 From: Vincenzo Sicurella Date: Thu, 18 Jul 2024 02:20:36 -0400 Subject: [PATCH] use text matching to filter related batch colour events --- Source/mapping_editors/BatchToolsColourControls.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/mapping_editors/BatchToolsColourControls.cpp b/Source/mapping_editors/BatchToolsColourControls.cpp index 46884be..1bc03ad 100644 --- a/Source/mapping_editors/BatchToolsColourControls.cpp +++ b/Source/mapping_editors/BatchToolsColourControls.cpp @@ -239,6 +239,10 @@ void BatchToolsColourControls::handleStatePropertyChange(juce::ValueTree stateIn void BatchToolsColourControls::layoutWasUpdated() { - if (!getHasChangesToSave()) + auto desc = undoManager->getUndoDescription(); + if (!desc.contains("BatchColour")) *lastSavedLayout = *getMappingData(); + // if (!getHasChangesToSave()) + // *lastSavedLayout = *getMappingData(); + }