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

Method refreshWorkspaceSwitcherModel

app/src/UI/Taskbar.cpp:1551–1560  ·  view source on GitHub ↗

* @brief Recomputes the flat switcher list and emits only when its contents actually change, so * unrelated widget-count churn cannot reassign (and thereby close) the open switcher popup. */

Source from the content-addressed store, hash-verified

1549 * unrelated widget-count churn cannot reassign (and thereby close) the open switcher popup.
1550 */
1551void UI::Taskbar::refreshWorkspaceSwitcherModel()
1552{
1553 QVariantList updated;
1554 flattenSwitcherNodes(collapseSingleFolderRoots(workspaceTree()), QString(), updated);
1555 if (updated == m_workspaceSwitcherModel)
1556 return;
1557
1558 m_workspaceSwitcherModel = updated;
1559 Q_EMIT workspaceSwitcherModelChanged();
1560}
1561
1562/**
1563 * @brief Navigates to the workspace containing the given widget and shows it.

Callers

nothing calls this directly

Calls 2

flattenSwitcherNodesFunction · 0.85

Tested by

no test coverage detected