mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
fix(workspaces): index
This commit is contained in:
parent
da0674debc
commit
c912d8c86a
@ -100,7 +100,8 @@ void waybar::modules::sway::Workspaces::addWorkspace(Json::Value node)
|
||||
auto icon = getIcon(node["name"].asString(), node);
|
||||
auto format = config_["format"]
|
||||
? fmt::format(config_["format"].asString(), fmt::arg("icon", icon),
|
||||
fmt::arg("name", node["name"].asString()))
|
||||
fmt::arg("name", node["name"].asString()),
|
||||
fmt::arg("index", node["num"].asString()))
|
||||
: icon;
|
||||
auto pair = buttons_.emplace(node["num"].asInt(), format);
|
||||
auto &button = pair.first->second;
|
||||
|
Loading…
Reference in New Issue
Block a user