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:
parent
ca1b03a22d
commit
de723216b5
1 changed files with 4 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue