gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

commit 69242848cf8679ec75b8058032723040c3974bed
parent def208c57b3952d0c8609dbc47766f2aeb1ec954
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Sat, 20 Apr 2024 02:10:10 +0200

forbid part select in single mode

Diffstat:
Msource/xtJucePlugin/xtParts.cpp | 13+++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/source/xtJucePlugin/xtParts.cpp b/source/xtJucePlugin/xtParts.cpp @@ -27,10 +27,19 @@ namespace xtJucePlugin bool Parts::selectPart(const uint8_t _part) { - if(_part >= m_parts.size()) + auto fail = [this]() + { + juce::MessageManager::callAsync([this] + { + updateUi(); + }); return false; + }; + + if(_part < m_parts.size()) + return fail(); if(_part > 0 && !m_editor.getXtController().isMultiMode()) - return false; + return fail(); m_editor.setCurrentPart(_part); updateUi();