Skip to content
Snippets Groups Projects
Commit bb4b87b3 authored by Septen's avatar Septen
Browse files

CAR: some minor fixes.

parent e4989fe7
No related branches found
No related tags found
No related merge requests found
......@@ -124,7 +124,7 @@ void CAR::setReferenceChannelState (int channel, bool newState)
if (! newState)
m_referenceChannels.removeFirstMatchingValue (channel);
else
m_referenceChannels.add (channel);
m_referenceChannels.addIfNotAlreadyThere (channel);
}
......
......@@ -40,6 +40,7 @@ CAREditor::CAREditor (GenericProcessor* parentProcessor, bool useDefaultParamete
, m_gainSlider (new ParameterSlider (0.0, 100.0, 100.0, FONT_LABELS))
{
TextButton* referenceChannelsButton = new TextButton ("Reference", "Switch to reference channels");
referenceChannelsButton->setClickingTogglesState (true);
referenceChannelsButton->setToggleState (true, dontSendNotification);
referenceChannelsButton->setColour (TextButton::buttonColourId, Colour (0x0));
referenceChannelsButton->setColour (TextButton::buttonOnColourId, Colour (0x0));
......@@ -47,6 +48,7 @@ CAREditor::CAREditor (GenericProcessor* parentProcessor, bool useDefaultParamete
referenceChannelsButton->setColour (TextButton::textColourOnId, COLOUR_ACCENT);
TextButton* affectedChannelsButton = new TextButton ("Affected", "Switch to affected channels");
affectedChannelsButton->setClickingTogglesState (true);
affectedChannelsButton->setColour (TextButton::buttonColourId, Colour (0x0));
affectedChannelsButton->setColour (TextButton::buttonOnColourId, Colour (0x0));
affectedChannelsButton->setColour (TextButton::textColourOffId, COLOUR_PRIMARY);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment