* @brief Hides an auto-generated group workspace from the workspace list. */
| 7400 | * @brief Hides an auto-generated group workspace from the workspace list. |
| 7401 | */ |
| 7402 | void DataModel::ProjectModel::hideGroup(int groupId) |
| 7403 | { |
| 7404 | if (AppState::instance().operationMode() != SerialStudio::ProjectFile) |
| 7405 | return; |
| 7406 | |
| 7407 | if (groupId < 0) |
| 7408 | return; |
| 7409 | |
| 7410 | if (m_hiddenGroupIds.contains(groupId)) |
| 7411 | return; |
| 7412 | |
| 7413 | m_hiddenGroupIds.insert(groupId); |
| 7414 | |
| 7415 | if (!m_customizeWorkspaces) |
| 7416 | regenerateAutoWorkspacesUnnotified(); |
| 7417 | |
| 7418 | setModified(true); |
| 7419 | Q_EMIT editorWorkspacesChanged(); |
| 7420 | Q_EMIT activeWorkspacesChanged(); |
| 7421 | } |
| 7422 | |
| 7423 | /** |
| 7424 | * @brief Restores a previously hidden auto-generated group workspace. |
no test coverage detected