fix: rename workspace active fix
This commit is contained in:
parent
38ef38b72f
commit
2837b72064
|
@ -163,6 +163,9 @@ void Workspaces::onEvent(const std::string &ev) {
|
|||
std::string new_name = payload.substr(payload.find(',') + 1);
|
||||
for (auto &workspace : workspaces_) {
|
||||
if (workspace->id() == workspace_id) {
|
||||
if (workspace->name() == active_workspace_name_) {
|
||||
active_workspace_name_ = new_name;
|
||||
}
|
||||
workspace->set_name(new_name);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue