Skip to content

Commit 9ac1449

Browse files
authored
Merge pull request #212 from tne-lab/lfp-viewer-subproc-fix
Fix 'drawableSubprocessor' not being set when not loading settings or explicitly selecting a subprocessor
2 parents 384fb40 + 12b5d3c commit 9ac1449

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

Source/Plugins/LfpDisplayNode/LfpDisplayEditor.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ void LfpDisplayEditor::stopAcquisition()
7171
Visualizer* LfpDisplayEditor::createNewCanvas()
7272
{
7373
canvas = new LfpDisplayCanvas(lfpProcessor);
74-
updateSubprocessorSelectorOptions();
7574
return canvas;
7675
}
7776

@@ -141,7 +140,7 @@ void LfpDisplayEditor::updateSubprocessorSelectorOptions()
141140

142141
if (defaultSubprocessor >= 0)
143142
{
144-
subprocessorSelection->setSelectedId(defaultSubprocessor + 1, dontSendNotification);
143+
subprocessorSelection->setSelectedId(defaultSubprocessor + 1, sendNotification);
145144

146145
String sampleRateLabelText = "Sample Rate: ";
147146
sampleRateLabelText += String(inputSampleRates[*(inputSubprocessorIndices.begin() + defaultSubprocessor)]);

Source/Plugins/LfpDisplayNode/LfpDisplayNode.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ void LfpDisplayNode::setSubprocessor(int sp)
147147
subprocessorToDraw = sp;
148148
std::cout << "LfpDisplayNode setting subprocessor to " << sp << std::endl;
149149
updateSubprocessorsFlag = false;
150-
updateSettings();
151150

152151
}
153152

0 commit comments

Comments
 (0)