From 132d494cc274fc19922e8b4896f94b72e579ee50 Mon Sep 17 00:00:00 2001 From: Simon Gellis Date: Sat, 6 Sep 2025 10:13:09 -0400 Subject: [PATCH] Delete profiles before overwriting --- src/window/profile.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/window/profile.rs b/src/window/profile.rs index 0499bfa..e5ffb00 100644 --- a/src/window/profile.rs +++ b/src/window/profile.rs @@ -65,6 +65,7 @@ impl ProfileWindow { .save_file(); if let Some(path) = file { let bytes = pollster::block_on(bytes_receiver)?; + let _ = fs::remove_file(&path); fs::write(&path, bytes)?; Ok(Some(path.display().to_string())) } else {