Try to load png and xmp in case svg is not found when force_svg is enabled
This commit is contained in:
parent
8a85d31f1a
commit
8c33445d75
1 changed files with 2 additions and 0 deletions
|
|
@ -110,6 +110,8 @@ pub(super) fn try_build_icon_path<P: AsRef<Path>>(
|
|||
) -> Option<PathBuf> {
|
||||
if force_svg {
|
||||
try_build_svg(name, path.as_ref())
|
||||
.or_else(|| try_build_png(name, path.as_ref()))
|
||||
.or_else(|| try_build_xmp(name, path.as_ref()))
|
||||
} else {
|
||||
try_build_png(name, path.as_ref())
|
||||
.or_else(|| try_build_svg(name, path.as_ref()))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue