1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-18 00:54:19 +00:00

Fixed an issue where the bus enabled radio button in the audio demo host would not update properly

This commit is contained in:
hogliux 2017-03-16 17:23:26 +00:00
parent ca1b03a22d
commit de723216b5

View file

@ -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);
}
}
}