mirror of
https://codeberg.org/armin/chromaflock.git
synced 2026-09-01 04:10:47 +02:00
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.
This commit is contained in:
parent
551ffeb24e
commit
dc9e973340
1 changed files with 1 additions and 0 deletions
|
|
@ -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<juce::RangedAudioParameter*>(p);
|
||||
if (rap == nullptr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue