add persistent format-icon
This commit is contained in:
parent
56fa6b6afc
commit
5df43be11f
|
@ -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