Skip to content

Commit

Permalink
🔧 Do not wait for gui of deletable mark
Browse files Browse the repository at this point in the history
  • Loading branch information
Schneegans committed Mar 13, 2024
1 parent 54a7569 commit 8aa4ee6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/csl-tools/src/DeletableMark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ void DeletableMark::initData() {

mGuiItem->setCursorChangeCallback([](cs::gui::Cursor c) { cs::core::GuiManager::setCursor(c); });
mGuiItem->setCanScroll(false);
mGuiItem->waitForFinishedLoading();

mGuiNode = pSG->NewOpenGLNode(pGuiTransform, mGuiArea.get());
mInputManager->registerSelectable(mGuiNode);
Expand All @@ -87,7 +86,7 @@ void DeletableMark::initData() {

pDeletable.connect([this](bool val) {
if (!val) {
mGuiItem->callJavascript("setMinimized", true);
pSelected = false;
}
});
}
Expand Down

0 comments on commit 8aa4ee6

Please sign in to comment.