mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Hyprland/workspaces: use named icons instead of searching by id
This commit is contained in:
parent
b084bf721e
commit
2ba11e8401
@ -383,7 +383,7 @@ std::string &Workspace::select_icon(std::map<std::string, std::string> &icons_ma
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
auto named_icon_it = icons_map.find(std::to_string(id()));
|
auto named_icon_it = icons_map.find(name());
|
||||||
if (named_icon_it != icons_map.end()) {
|
if (named_icon_it != icons_map.end()) {
|
||||||
return named_icon_it->second;
|
return named_icon_it->second;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user