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

Method saveLayout

app/src/API/Handlers/WindowHandler.cpp:429–441  ·  view source on GitHub ↗

* @brief Save the current layout to the project (via Taskbar::saveLayout). */

Source from the content-addressed store, hash-verified

427 * @brief Save the current layout to the project (via Taskbar::saveLayout).
428 */
429API::CommandResponse API::Handlers::WindowHandler::saveLayout(const QString& id,
430 const QJsonObject& params)
431{
432 Q_UNUSED(params)
433
434 auto* taskbar = UI::UISessionRegistry::instance().primaryTaskbar();
435 if (!taskbar)
436 return noSession(id);
437
438 QMetaObject::invokeMethod(taskbar, [taskbar]() { taskbar->saveLayout(); });
439
440 return CommandResponse::makeSuccess(id);
441}
442
443/**
444 * @brief Load the saved layout from the project (via WindowManager::loadLayout).

Callers

nothing calls this directly

Calls 2

noSessionFunction · 0.85
primaryTaskbarMethod · 0.80

Tested by

no test coverage detected