fix: set workspace as persistent on create_workspace

pull/2605/head
Brenno Lemos 2023-10-23 21:07:25 -03:00
parent f2085fcd92
commit 4aee5977d6
1 changed files with 3 additions and 0 deletions

View File

@ -487,6 +487,9 @@ void Workspaces::create_workspace(Json::Value const &workspace_data,
});
if (workspace != workspaces_.end()) {
if (workspace_data["persistent"].asBool() and !(*workspace)->is_persistent()) {
(*workspace)->set_persistent();
}
return;
}