From de723216b52c146a22e260fba0bd9bbb8bf7e4e9 Mon Sep 17 00:00:00 2001 From: hogliux Date: Thu, 16 Mar 2017 17:23:26 +0000 Subject: [PATCH] Fixed an issue where the bus enabled radio button in the audio demo host would not update properly --- .../audio plugin host/Source/FilterIOConfiguration.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/audio plugin host/Source/FilterIOConfiguration.cpp b/examples/audio plugin host/Source/FilterIOConfiguration.cpp index d52a37375e..6f925ffd7c 100644 --- a/examples/audio plugin host/Source/FilterIOConfiguration.cpp +++ b/examples/audio plugin host/Source/FilterIOConfiguration.cpp @@ -258,6 +258,8 @@ private: { if (AudioProcessor::Bus* bus = filter->getBus (isInput, currentBus)) { + name.setText (bus->getName(), NotificationType::dontSendNotification); + int i; for (i = 1; i < AudioChannelSet::maxChannelsOfNamedLayout; ++i) @@ -282,10 +284,9 @@ private: const bool canBeDisabled = bus->isNumberOfChannelsSupported (0); if (canBeDisabled != enabledToggle.isEnabled()) - { enabledToggle.setEnabled (canBeDisabled); - enabledToggle.setToggleState (bus->isEnabled(), NotificationType::dontSendNotification); - } + + enabledToggle.setToggleState (bus->isEnabled(), NotificationType::dontSendNotification); } } }