Give up on empty icon names

This commit is contained in:
Ridan Vandenbergh 2025-06-21 13:21:58 +02:00
parent 0b3e9a9987
commit 79dbfa3c09
No known key found for this signature in database

View file

@ -65,6 +65,10 @@ impl Icons {
scale: u32,
theme: &str,
) -> Option<IconFile> {
if icon_name.is_empty() {
return None;
}
let theme = self.theme(theme).or_else(|| self.theme("hicolor"))?;
theme
.find_icon(icon_name, size, scale)