Skip to content

Commit f0570e5

Browse files
committed
Fix RecordNode collapsed state
1 parent 5936955 commit f0570e5

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Source/Processors/RecordNode/RecordNodeEditor.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ void RecordNodeEditor::updateFifoMonitors()
247247
streamId, nEvents));
248248
streamRecords.getLast()->setBounds(18 + streamCount * 20, 110, 15, 15);
249249
addAndMakeVisible(streamRecords.getLast());
250+
streamRecords.getLast()->setVisible(false);
250251

251252
streamCount++;
252253

@@ -403,15 +404,19 @@ void RecordNodeEditor::showFifoMonitors(bool show)
403404
streamSelector->getX() + dX, streamSelector->getY(),
404405
streamSelector->getWidth(), streamSelector->getHeight());
405406

407+
408+
desiredWidth += dX;
409+
410+
if (getCollapsedState())
411+
return;
412+
406413
for (auto spl : streamLabels)
407414
spl->setVisible(show);
408415
for (auto spm : streamMonitors)
409416
spm->setVisible(show);
410417
for (auto spr : streamRecords)
411418
spr->setVisible(show);
412419

413-
desiredWidth += dX;
414-
415420
CoreServices::highlightEditor(this);
416421
deselect();
417422

0 commit comments

Comments
 (0)