From 5155f0a921cc7f45001670f5bdb491924f92e4de Mon Sep 17 00:00:00 2001 From: George Reales Date: Thu, 23 Apr 2020 19:41:50 +0200 Subject: [PATCH] GUI fix Loaded preset didn't refresh knob status. --- Source/Gui/ButtonList.h | 2 +- Source/Gui/TooglableButton.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Gui/ButtonList.h b/Source/Gui/ButtonList.h index 0f8fcdd..c65ec53 100755 --- a/Source/Gui/ButtonList.h +++ b/Source/Gui/ButtonList.h @@ -59,7 +59,7 @@ public: */ void updateToSlider(){ float val = parameter->getValue(); - buttonListToControl->setValue(val, NotificationType::dontSendNotification); + //buttonListToControl->setValue(val, NotificationType::dontSendNotification); //buttonListToControl->setValue(parameter->convertFrom0to1(val0to1), NotificationType::dontSendNotification); buttonListToControl->setValue(val, NotificationType::dontSendNotification); } diff --git a/Source/Gui/TooglableButton.h b/Source/Gui/TooglableButton.h index a68ad6d..af3f055 100755 --- a/Source/Gui/TooglableButton.h +++ b/Source/Gui/TooglableButton.h @@ -64,6 +64,7 @@ public: void updateToSlider(){ float val = parameter->getValue(); //buttonToControl->setValue(parameter->convertFrom0to1(val0to1), NotificationType::dontSendNotification); + buttonToControl->setValue(val, NotificationType::dontSendNotification); } virtual ~ToggleAttachment() = default; };