From a7393156d990fa0f080f3b47df79d5d42f3d501d Mon Sep 17 00:00:00 2001 From: Nikita Podvirnyi Date: Mon, 17 Jun 2024 16:03:29 +0200 Subject: [PATCH] fix: fixed last commit --- src/background.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/background.rs b/src/background.rs index 54bcfac..0f8e33a 100644 --- a/src/background.rs +++ b/src/background.rs @@ -104,7 +104,7 @@ pub fn download_background() -> anyhow::Result<()> { // If it failed to re-code the file - just copy it // Will happen with HSR because devs apparently named // their background image ".webp" while it's JPEG - if crate::BACKGROUND_PRIMARY_FILE.exists() { + if !crate::BACKGROUND_PRIMARY_FILE.exists() { std::fs::copy(crate::BACKGROUND_FILE.as_path(), crate::BACKGROUND_PRIMARY_FILE.as_path())?; } }