diff --git a/I18N Commander/UI WinForms/Components/LoaderStart.cs b/I18N Commander/UI WinForms/Components/LoaderStart.cs index 40f614f..052fe29 100644 --- a/I18N Commander/UI WinForms/Components/LoaderStart.cs +++ b/I18N Commander/UI WinForms/Components/LoaderStart.cs @@ -110,6 +110,12 @@ public partial class LoaderStart : UserControl return; var destinationFilePath = saveDialog.FileName; + + // When the user chose an existing file, we delete it: + // (note: the user already accepts overwriting the file) + if (File.Exists(destinationFilePath)) + File.Delete(destinationFilePath); + LoaderStart.UpdateRecentProjectsWithPruning(destinationFilePath); this.OpenProject(destinationFilePath); }