Hyprland/workspaces: use named icons instead of searching by id

pull/2393/head
zjeffer 2023-08-10 20:00:01 +02:00
parent b084bf721e
commit 2ba11e8401
1 changed files with 1 additions and 1 deletions

View File

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