Skip to content

Commit

Permalink
Fix bug with being unable to duplicate vanilla files
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Is-Awesome committed Jul 25, 2024
1 parent 9c9e114 commit f831444
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Code/APMenuStuff.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@ public void SaveAPDataToFile(APFileData apFileData)

public void DuplicateAPDataFile()
{
File.Copy(GetAPDataFilePath(false), GetAPDataFilePath(true), true);
string path = GetAPDataFilePath(false);

if (File.Exists(path))
File.Copy(path, GetAPDataFilePath(true), true);
}

public void DeleteAPDataFile()
Expand Down

0 comments on commit f831444

Please sign in to comment.