* @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. */
| 1549 | * unrelated widget-count churn cannot reassign (and thereby close) the open switcher popup. |
| 1550 | */ |
| 1551 | void 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. |
nothing calls this directly
no test coverage detected