Merge pull request #2485 from khaneliman/active-rename
commit
309edd0585
|
@ -163,6 +163,9 @@ void Workspaces::onEvent(const std::string &ev) {
|
||||||
std::string new_name = payload.substr(payload.find(',') + 1);
|
std::string new_name = payload.substr(payload.find(',') + 1);
|
||||||
for (auto &workspace : workspaces_) {
|
for (auto &workspace : workspaces_) {
|
||||||
if (workspace->id() == workspace_id) {
|
if (workspace->id() == workspace_id) {
|
||||||
|
if (workspace->name() == active_workspace_name_) {
|
||||||
|
active_workspace_name_ = new_name;
|
||||||
|
}
|
||||||
workspace->set_name(new_name);
|
workspace->set_name(new_name);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue