From dc9e973340a52b2475993c15c04845f22383f253 Mon Sep 17 00:00:00 2001 From: Armin Date: Tue, 14 Jul 2026 14:01:27 +0200 Subject: [PATCH] fix: clear preset selection checkmark when Randomize is used Set currentPresetIndex to -1 in randomizeParameters so the preset menu no longer shows a tick on the previously selected preset. --- Source/PluginEditor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index 6c247a5..8d6282c 100644 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -709,6 +709,7 @@ void MainContentComponent::applyCurrentPreset() { void MainContentComponent::randomizeParameters() { juce::Random rand; processorRef.fadeOutActiveVoices(0.25f); + currentPresetIndex = -1; for (auto* p : processorRef.getParameters()) { auto* rap = dynamic_cast(p); if (rap == nullptr)