mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
fix(workspaces): order
This commit is contained in:
parent
7c4d75d428
commit
071b4928dc
@ -83,8 +83,8 @@ void Workspaces::onCmd(const struct Ipc::ipc_response &res) {
|
|||||||
|
|
||||||
if (workspaces_order_.empty()) {
|
if (workspaces_order_.empty()) {
|
||||||
// Saving starting order
|
// Saving starting order
|
||||||
workspaces_order_.reserve(workspaces_.size());
|
workspaces_order_.reserve(payload.size());
|
||||||
for (const Json::Value &workspace : workspaces_) {
|
for (const Json::Value &workspace : payload) {
|
||||||
workspaces_order_.emplace_back(workspace["name"].asString());
|
workspaces_order_.emplace_back(workspace["name"].asString());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user