Fixed creating new project over an existing one doesn't replaces the old one
Closes #16
This commit is contained in:
parent
ff87378012
commit
1d7e1db8e5
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user