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 {