commit 0968c835b499fd7026e24933d1ff28c61dbd3083
parent 50ad05df8949c78c788b5727301ffe00b1c4d328
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date: Sat, 13 Jul 2024 14:26:33 +0200
fix initial state of Multi Mode button not set
Diffstat:
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/doc/changelog.txt b/doc/changelog.txt
@@ -15,6 +15,9 @@ Xenia:
- [Imp] Added support for MW1 patches
- [Imp] FX delay times are now displayed as note length + BPM as on hardware
+- [Fix] Initial state of Multi Mode button was always off even though the device
+ might have booted with Multi Mode enabled
+
1.3.15 (2023.07.06)
Framework:
diff --git a/source/xtJucePlugin/xtEditor.cpp b/source/xtJucePlugin/xtEditor.cpp
@@ -56,10 +56,17 @@ namespace xtJucePlugin
m_controller.setPlayMode(m_btMultiMode->getToggleState());
};
- m_playModeChangeListener = [this](const bool& isMultiMode)
+ auto updateMultiButton = [this](const bool _isMultiMode)
{
- m_btMultiMode->setToggleState(isMultiMode, juce::dontSendNotification);
- m_ledMultiMode->setToggleState(isMultiMode, juce::dontSendNotification);
+ m_btMultiMode->setToggleState(_isMultiMode, juce::dontSendNotification);
+ m_ledMultiMode->setToggleState(_isMultiMode, juce::dontSendNotification);
+ };
+
+ updateMultiButton(m_controller.isMultiMode());
+
+ m_playModeChangeListener = [this, updateMultiButton](const bool& _isMultiMode)
+ {
+ updateMultiButton(_isMultiMode);
m_frontPanel->getLcd()->refresh();
};