MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / scheduleProjectApply

Function scheduleProjectApply

app/src/API/CommandRegistry.cpp:181–195  ·  view source on GitHub ↗

* @brief Queues a single FrameBuilder re-sync on the event loop so the live dashboard * picks up programmatic project edits; a burst of mutating commands (project.batch, * rapid tool calls) collapses into one apply. */

Source from the content-addressed store, hash-verified

179 * rapid tool calls) collapses into one apply.
180 */
181static void scheduleProjectApply()
182{
183 static bool pending = false;
184 if (pending)
185 return;
186
187 pending = true;
188 QMetaObject::invokeMethod(
189 QCoreApplication::instance(),
190 [] {
191 pending = false;
192 DataModel::FrameBuilder::instance().syncFromProjectModel();
193 },
194 Qt::QueuedConnection);
195}
196
197/**
198 * @brief Execute a registered command

Callers 1

executeMethod · 0.85

Calls 1

syncFromProjectModelMethod · 0.80

Tested by

no test coverage detected