Skip to content

Commit

Permalink
Fix MessageListener bug
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Feb 19, 2025
1 parent 1f2e81a commit a252259
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Source/Canvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,7 @@ void Canvas::performSynchronise()
bool needsFlush = !alreadyFlushed;
ScopedValueSetter<bool> flushGuard(alreadyFlushed, true);
// By flushing twice, we can make sure that any message sent before this point will be dequeued
if (needsFlush)
if (needsFlush && !isGraph)
pd->doubleFlushMessageQueue();

// Remove deleted connections
Expand Down Expand Up @@ -2835,10 +2835,7 @@ void Canvas::receiveMessage(t_symbol* symbol, SmallArray<pd::Atom> const& atoms)
}
case hash("coords"):
case hash("donecanvasdialog"): {
if (auto* cnv = editor->getCurrentCanvas()) {
cnv->synchronise();
cnv->synchroniseSplitCanvas();
}
synchroniseSplitCanvas();
break;
}
}
Expand Down

0 comments on commit a252259

Please sign in to comment.