mirror of
https://github.com/JakeStanger/ironbar.git
synced 2024-11-29 10:33:00 +03:00
fix(images): incorrectly resolving non-files
This commit is contained in:
parent
e83618b1d6
commit
51d2c2279f
@ -74,7 +74,7 @@ impl<'a> ImageProvider<'a> {
|
||||
})
|
||||
}
|
||||
Some(input_type) => Err(Report::msg(format!("Unsupported image type: {input_type}"))),
|
||||
None if PathBuf::from(input_name).exists() => {
|
||||
None if PathBuf::from(input_name).is_file() => {
|
||||
Ok(ImageLocation::Local(PathBuf::from(input_name)))
|
||||
}
|
||||
None => get_desktop_icon_name(input_name).map_or_else(
|
||||
|
Loading…
Reference in New Issue
Block a user