workspacerules: Add a persistent workspace rule (#3530)

* add persistent flag to workspace rules

* get rid of unused ws->indestructible flag
This commit is contained in:
Roberto Previdi
2023-10-09 21:28:22 +02:00
committed by GitHub
parent 7f8e0a1318
commit df0c8e0f7a
4 changed files with 7 additions and 4 deletions

View File

@@ -1177,6 +1177,8 @@ void CConfigManager::handleWorkspaceRules(const std::string& command, const std:
wsRule.monitor = rule.substr(delim + 8);
else if ((delim = rule.find("default:")) != std::string::npos)
wsRule.isDefault = configStringToInt(rule.substr(delim + 8));
else if ((delim = rule.find("persistent:")) != std::string::npos)
wsRule.isPersistent = configStringToInt(rule.substr(delim + 11));
};
size_t pos = 0;