mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-01 10:41:03 +02:00
Merge branch 'master' into feat/build-flags
# Conflicts: # src/image/provider.rs
This commit is contained in:
commit
2780d98ee0
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ impl<'a> ImageProvider<'a> {
|
|||
}
|
||||
Some(input_type) => Err(Report::msg(format!("Unsupported image type: {input_type}"))
|
||||
.note("You may need to recompile with support if available")),
|
||||
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…
Add table
Add a link
Reference in a new issue