diff options
| author | shezdy <77217897+shezdy@users.noreply.github.com> | 2026-04-30 13:10:03 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-30 20:10:03 +0100 |
| commit | 546cc71565cd2ccd9277febb14dcebf513ace623 (patch) | |
| tree | fe0cbe8e7e415f77158965cd11925572efc30fb7 /src/config/shared/workspace/WorkspaceRuleManager.cpp | |
| parent | bac49db9a11d5398963f4ad3265a577f8e94dc66 (diff) | |
config/workspace-rules: support modifying persistent and monitor (#14217)
* workspace rules: support modifying persistent and monitor
* support modifying isDefault
Diffstat (limited to 'src/config/shared/workspace/WorkspaceRuleManager.cpp')
| -rw-r--r-- | src/config/shared/workspace/WorkspaceRuleManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/shared/workspace/WorkspaceRuleManager.cpp b/src/config/shared/workspace/WorkspaceRuleManager.cpp index 4c2c2b90..04b94a53 100644 --- a/src/config/shared/workspace/WorkspaceRuleManager.cpp +++ b/src/config/shared/workspace/WorkspaceRuleManager.cpp @@ -55,7 +55,7 @@ std::string CWorkspaceRuleManager::getDefaultWorkspaceFor(const std::string& nam if (!other->m_enabled) continue; - if (other->m_isDefault) { + if (other->m_isDefault.value_or(false)) { if (other->m_monitor == name) return other->m_workspaceString; if (other->m_monitor.starts_with("desc:")) { |
