Skip to content

Commit

Permalink
Merge pull request #4457 from Be-ing/chain_preset_selector_0
Browse files Browse the repository at this point in the history
EffectChain: make setting chain_preset_selector to 0 a no-op
  • Loading branch information
daschuer authored Oct 18, 2021
2 parents 64944d3 + ace3166 commit 6367bf2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/effects/effectchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,9 @@ void EffectChain::slotControlChainSelector(double value) {
index++;
} else if (value < 0) {
index--;
} else {
// Do not reload the current preset when set to 0.
return;
}
loadChainPreset(presetAtIndex(index));
}
Expand Down

0 comments on commit 6367bf2

Please sign in to comment.