File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
External/Plugins/ProjectManager/Controls Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -298,6 +298,7 @@ public NewProjectDialog()
298
298
List < String > templateDirs = ProjectPaths . GetAllProjectDirs ( ) ;
299
299
templateDirs . Sort ( CompareFolderNames ) ;
300
300
ListViewItem lastItem = null ;
301
+ String lastTemplate = null ;
301
302
302
303
foreach ( string templateDir in templateDirs )
303
304
{
@@ -322,9 +323,10 @@ public NewProjectDialog()
322
323
item . Group = group ;
323
324
}
324
325
325
- if ( lastItem != null && lastItem . Text == item . Text ) // remove duplicates (keep last)
326
+ if ( lastItem != null && lastTemplate == templateName ) // remove duplicates (keep last)
326
327
projectListView . Items . Remove ( lastItem ) ;
327
328
lastItem = item ;
329
+ lastTemplate = templateName ;
328
330
projectListView . Items . Add ( item ) ;
329
331
}
330
332
this . Load += new EventHandler ( NewProjectDialog_Load ) ;
You can’t perform that action at this time.
0 commit comments