1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-07-04 20:21:02 +02:00

feat(custom): image widget

This commit is contained in:
Jake Stanger 2023-01-29 17:47:01 +00:00
parent 5772711192
commit 393800aaa2
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
4 changed files with 64 additions and 14 deletions

View file

@ -68,7 +68,7 @@ impl<'a> ImageProvider<'a> {
None if PathBuf::from(input_name).exists() => {
Ok(ImageLocation::Local(PathBuf::from(input_name)))
}
None => match get_desktop_icon_name(&input_name) {
None => match get_desktop_icon_name(input_name) {
Some(input) => Self::get_location(input, theme, size),
None => Err(Report::msg("Unknown image type")),
},