mirror of
https://gitlab.gnome.org/World/Authenticator.git
synced 2025-03-04 08:44:40 +01:00
favicon: Create a link for svg favicons
Instead of creating a scaled variants Fixes #326
This commit is contained in:
parent
a41f8382a4
commit
d24fcc3546
1 changed files with 8 additions and 0 deletions
|
@ -418,6 +418,14 @@ impl Provider {
|
|||
large_pixbuf.savev(large_cache.clone(), "png", &[])?;
|
||||
};
|
||||
tokio::fs::remove_file(cache_path).await?;
|
||||
} else {
|
||||
let mut small_cache = cache_path.clone();
|
||||
small_cache.set_file_name(small_icon_name);
|
||||
tokio::fs::symlink(&cache_path, small_cache).await?;
|
||||
|
||||
let mut large_cache = cache_path.clone();
|
||||
large_cache.set_file_name(large_icon_name);
|
||||
tokio::fs::symlink(&cache_path, large_cache).await?;
|
||||
}
|
||||
Ok(icon_name.to_string())
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue