Skip to content
This repository has been archived by the owner on Dec 22, 2024. It is now read-only.

Commit

Permalink
Don't overwrite or check the merged file if a previous one was alread…
Browse files Browse the repository at this point in the history
…y opened
  • Loading branch information
VoidXH committed Aug 12, 2020
1 parent af75ec7 commit 26ec15b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion TriviaMurderPartyModder/Data/DataFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ public void Import(bool clear) {
if (opener.ShowDialog() == true) {
if (clear)
Clear();
Add(FileName = opener.FileName);
if (Items.Count == 0)
FileName = opener.FileName;
Add(opener.FileName);
}
Unsaved = !clear;
}
Expand Down

0 comments on commit 26ec15b

Please sign in to comment.