Skip to content

Commit 5cf0951

Browse files
committed
fix #468: Hide all text bubbles when the project stops
1 parent d120f2c commit 5cf0951

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/blocks/looksblocks.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,14 @@ void LooksBlocks::onInit(IEngine *engine)
103103
m_timeMap.erase(vm);
104104
erase_if(m_waitingBubbles, [vm](const std::pair<Target *, VirtualMachine *> &pair) { return pair.second == vm; });
105105
});
106+
107+
engine->stopped().connect([engine]() {
108+
const auto &targets = engine->targets();
109+
110+
for (auto target : targets) {
111+
target->setBubbleText("");
112+
}
113+
});
106114
}
107115

108116
void LooksBlocks::compileSayForSecs(Compiler *compiler)

0 commit comments

Comments
 (0)