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

Function enableCustomizeMode

app/src/AI/ToolDispatcher.cpp:1670–1681  ·  view source on GitHub ↗

* @brief Enables customize mode so subsequent workspace mutations are accepted. */

Source from the content-addressed store, hash-verified

1668 * @brief Enables customize mode so subsequent workspace mutations are accepted.
1669 */
1670static QJsonObject enableCustomizeMode(QJsonArray& steps)
1671{
1672 const auto customize = runCommand(QStringLiteral("project.workspace.setCustomizeMode"),
1673 QJsonObject{
1674 {QStringLiteral("enabled"), true}
1675 });
1676 steps.append(QJsonObject{
1677 {QStringLiteral("command"), QStringLiteral("project.workspace.setCustomizeMode")},
1678 { QStringLiteral("ok"), customize.value(QStringLiteral("ok")).toBool()}
1679 });
1680 return customize;
1681}
1682
1683/**
1684 * @brief Orchestrates the workspace tile addition flow end-to-end.

Callers 1

executeAddTileFunction · 0.85

Calls 3

runCommandFunction · 0.85
appendMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected