fix: only convert if it hasnt already been converted

This commit is contained in:
silver 2025-06-07 23:02:16 +01:00
parent 537fdfd40c
commit acdfe4b423
Signed by untrusted user: silver
GPG key ID: 36F93D61BAD3FD7D

View file

@ -239,12 +239,15 @@ fn get_logos(config: &Config, config_toml: &ConfigToml) -> Vec<LogoData> {
path_new.push(filename);
// check if exists
if !path_new.exists() {
// convert if it hasnt been converted already
match r.render(&path_local, &args) {
Ok(_) => log::info!("Successfully rendered all colors of {path_local:?}"),
Err(e) => {
log::error!("Failed to render {path_local:?}: {}", e)
}
}
}
path = path_new;
}
}