From 546cc71565cd2ccd9277febb14dcebf513ace623 Mon Sep 17 00:00:00 2001 From: shezdy <77217897+shezdy@users.noreply.github.com> Date: Thu, 30 Apr 2026 13:10:03 -0600 Subject: config/workspace-rules: support modifying persistent and monitor (#14217) * workspace rules: support modifying persistent and monitor * support modifying isDefault --- src/config/shared/workspace/WorkspaceRuleManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/config/shared/workspace/WorkspaceRuleManager.cpp') 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:")) { -- cgit v1.2.3