Skip to content

Commit

Permalink
Fix false duplicate bug in Open Level window
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsPepperpot committed Nov 2, 2024
1 parent 7045bf4 commit 100bf79
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions IndustrialPark/MainForm/OpenLevel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,15 @@ private void btnImport_Click(object sender, EventArgs e)
{
// Check for duplicates and warn as necessary
List<string> files = new List<string>();
files.Add(txtHIP.Text);
files.Add(txtHOP.Text);
files.Add(txtBOOT.Text);

// Only add the files that are checked
if (chkHIP.Checked)
files.Add(txtHIP.Text);
if (chkHOP.Checked)
files.Add(txtHOP.Text);
if (chkBOOT.Checked)
files.Add(txtBOOT.Text);

foreach (var item in lvwLocalization.CheckedItems)
{
files.Add(((ListViewItem)item).Text);
Expand Down

0 comments on commit 100bf79

Please sign in to comment.