Skip to content

Commit 80925d7

Browse files
committed
Incorrectly dropping Haxe Empty project as duplicate to AS3 Empty project
1 parent 486e22d commit 80925d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

External/Plugins/ProjectManager/Controls/NewProjectDialog.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ public NewProjectDialog()
298298
List<String> templateDirs = ProjectPaths.GetAllProjectDirs();
299299
templateDirs.Sort(CompareFolderNames);
300300
ListViewItem lastItem = null;
301+
String lastTemplate = null;
301302

302303
foreach (string templateDir in templateDirs)
303304
{
@@ -322,9 +323,10 @@ public NewProjectDialog()
322323
item.Group = group;
323324
}
324325

325-
if (lastItem != null && lastItem.Text == item.Text) // remove duplicates (keep last)
326+
if (lastItem != null && lastTemplate == templateName) // remove duplicates (keep last)
326327
projectListView.Items.Remove(lastItem);
327328
lastItem = item;
329+
lastTemplate = templateName;
328330
projectListView.Items.Add(item);
329331
}
330332
this.Load += new EventHandler(NewProjectDialog_Load);

0 commit comments

Comments
 (0)