Skip to content

Commit bb4b87b

Browse files
committed
CAR: some minor fixes.
1 parent e4989fe commit bb4b87b

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Source/Plugins/CAR/CAR.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ void CAR::setReferenceChannelState (int channel, bool newState)
124124
if (! newState)
125125
m_referenceChannels.removeFirstMatchingValue (channel);
126126
else
127-
m_referenceChannels.add (channel);
127+
m_referenceChannels.addIfNotAlreadyThere (channel);
128128
}
129129

130130

Source/Plugins/CAR/CAREditor.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,15 @@ CAREditor::CAREditor (GenericProcessor* parentProcessor, bool useDefaultParamete
4040
, m_gainSlider (new ParameterSlider (0.0, 100.0, 100.0, FONT_LABELS))
4141
{
4242
TextButton* referenceChannelsButton = new TextButton ("Reference", "Switch to reference channels");
43+
referenceChannelsButton->setClickingTogglesState (true);
4344
referenceChannelsButton->setToggleState (true, dontSendNotification);
4445
referenceChannelsButton->setColour (TextButton::buttonColourId, Colour (0x0));
4546
referenceChannelsButton->setColour (TextButton::buttonOnColourId, Colour (0x0));
4647
referenceChannelsButton->setColour (TextButton::textColourOffId, COLOUR_PRIMARY);
4748
referenceChannelsButton->setColour (TextButton::textColourOnId, COLOUR_ACCENT);
4849

4950
TextButton* affectedChannelsButton = new TextButton ("Affected", "Switch to affected channels");
51+
affectedChannelsButton->setClickingTogglesState (true);
5052
affectedChannelsButton->setColour (TextButton::buttonColourId, Colour (0x0));
5153
affectedChannelsButton->setColour (TextButton::buttonOnColourId, Colour (0x0));
5254
affectedChannelsButton->setColour (TextButton::textColourOffId, COLOUR_PRIMARY);

0 commit comments

Comments
 (0)