Merge pull request #2485 from khaneliman/active-rename

pull/2494/head
Alexis Rouillard 2023-09-08 23:11:58 +02:00 committed by GitHub
commit 309edd0585
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}