fix indentation
This commit is contained in:
@ -71,12 +71,12 @@ void Workspaces::createWorkspace(Json::Value const &workspace_data,
|
|||||||
// avoid recreating existing workspaces
|
// avoid recreating existing workspaces
|
||||||
auto workspace =
|
auto workspace =
|
||||||
std::ranges::find_if(m_workspaces, [&](std::unique_ptr<Workspace> const &w) {
|
std::ranges::find_if(m_workspaces, [&](std::unique_ptr<Workspace> const &w) {
|
||||||
if (workspaceId > 0) {
|
if (workspaceId > 0) {
|
||||||
return w->id() == workspaceId;
|
return w->id() == workspaceId;
|
||||||
}
|
}
|
||||||
return (workspaceName.starts_with("special:") && workspaceName.substr(8) == w->name()) ||
|
return (workspaceName.starts_with("special:") && workspaceName.substr(8) == w->name()) ||
|
||||||
workspaceName == w->name();
|
workspaceName == w->name();
|
||||||
});
|
});
|
||||||
|
|
||||||
if (workspace != m_workspaces.end()) {
|
if (workspace != m_workspaces.end()) {
|
||||||
// don't recreate workspace, but update persistency if necessary
|
// don't recreate workspace, but update persistency if necessary
|
||||||
|
Reference in New Issue
Block a user