This commit is contained in:
arnaud-ma 2025-07-19 04:50:59 +02:00
parent a4f200cdb5
commit 2dc2b5ccfd
No known key found for this signature in database
GPG Key ID: DE6FBA95B2B86E53
1 changed files with 4 additions and 1 deletions

View File

@ -293,8 +293,11 @@ void Workspaces::loadPersistentWorkspacesFromWorkspaceRules(const Json::Value &c
if (!rule["persistent"].asBool()) {
continue;
}
auto const &workspace = rule.isMember("defaultName") ? rule["defaultName"].asString()
auto workspace = rule.isMember("defaultName") ? rule["defaultName"].asString()
: rule["workspaceString"].asString();
if (workspace.starts_with("name:")) {
workspace = workspace.substr(5);
}
auto const &monitor = rule["monitor"].asString();
// create this workspace persistently if:
// 1. the allOutputs config option is enabled