diff options
| author | Roberto Previdi <hariseldon78@gmail.com> | 2023-10-09 21:28:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-09 20:28:22 +0100 |
| commit | df0c8e0f7a580e18eebbe934c00124a08b426583 (patch) | |
| tree | e0de7483d6033eec97eead60deeae503d4603857 /src/config/ConfigManager.cpp | |
| parent | 7f8e0a131883ffa44ce85b2353873c2257aebbf7 (diff) | |
workspacerules: Add a persistent workspace rule (#3530)
* add persistent flag to workspace rules
* get rid of unused ws->indestructible flag
Diffstat (limited to 'src/config/ConfigManager.cpp')
| -rw-r--r-- | src/config/ConfigManager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 23efe77e..f21ad9f3 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -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; |
