mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Merge pull request #2156 from theRealCarneiro/master
Add persistent format-icon to wlr/workspaces
This commit is contained in:
commit
919ad0a8bb
@ -495,6 +495,13 @@ auto Workspace::get_icon() -> std::string {
|
|||||||
return named_icon_it->second;
|
return named_icon_it->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (is_empty()) {
|
||||||
|
auto persistent_icon_it = icons_map_.find("persistent");
|
||||||
|
if (persistent_icon_it != icons_map_.end()) {
|
||||||
|
return persistent_icon_it->second;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
auto default_icon_it = icons_map_.find("default");
|
auto default_icon_it = icons_map_.find("default");
|
||||||
if (default_icon_it != icons_map_.end()) {
|
if (default_icon_it != icons_map_.end()) {
|
||||||
return default_icon_it->second;
|
return default_icon_it->second;
|
||||||
|
Loading…
Reference in New Issue
Block a user