Skip to content

Commit

Permalink
SpikeChannel: don't update selected channels if channel count changes
Browse files Browse the repository at this point in the history
  • Loading branch information
anjaldoshi committed Jun 21, 2024
1 parent ecd68a1 commit b9a8433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Processors/Parameter/Parameter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ Array<var> SelectedChannelsParameter::parseSelectedString (const String& input)

void SelectedChannelsParameter::setChannelCount (int newCount)
{
if (channelCount > newCount)
if (channelCount > newCount && parameterOwner->getType() != ParameterOwner::SPIKE_CHANNEL)
{
Array<var> values;
for (int i = 0; i < currentValue.getArray()->size(); i++)
Expand Down

0 comments on commit b9a8433

Please sign in to comment.