Skip to content

Commit

Permalink
remove warning on empty icon config
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenesvk committed Apr 30, 2024
1 parent 7c593f6 commit e8d5c6e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/gui_win.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,14 @@ impl SystemTray {
.unwrap_or_else(|| OsStr::new(""))
.to_string_lossy()
.to_string();
let is_icn_ext_valid = if !IMG_EXT.iter().any(|&i| i == icn_ext) {
warn!("user extension \"{}\" isn't valid!", icn_ext);
false
} else {
trace!("icn_ext={:?}", icn_ext);
true
};
let is_icn_ext_valid =
if !IMG_EXT.iter().any(|&i| i == icn_ext) && icn_p.extension().is_some() {
warn!("user extension \"{}\" isn't valid!", icn_ext);
false
} else {
trace!("icn_ext={:?}", icn_ext);
true
};
let parents = [
Path::new(""),
pre_p,
Expand Down

0 comments on commit e8d5c6e

Please sign in to comment.