add persistent format-icon

This commit is contained in:
theRealCarneiro 2023-05-05 08:52:37 -03:00
parent 56fa6b6afc
commit 5df43be11f
1 changed files with 7 additions and 0 deletions

View File

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