Skip to content

Commit

Permalink
Merge pull request #41 from glassfish777/glassfishhotfix
Browse files Browse the repository at this point in the history
fix: Urgent hotfix for adding chunks
  • Loading branch information
nikich340 authored Aug 10, 2023
2 parents f0a558f + 54e016c commit 5f16d7c
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions WolvenKit/Forms/Dialog/frmAddChunk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,33 @@ public frmAddChunk(List<string> list = null, bool isVariant = false, bool allowE
list.Sort();

customClasses = CR2WManager.TypeNames;
customClasses.Sort();

classTypes = list.Concat(customClasses).Distinct().ToArray();

if (customClasses?.Any() == true)
{
customClasses.Sort();
classTypes = list.Concat(customClasses).Distinct().ToArray();
}
else
{
classTypes = list.ToArray();
}


vanillaEnums = AssemblyDictionary.EnumNames;
vanillaEnums.Sort();
customEnums = CR2WManager.EnumNames;
customEnums.Sort();


if (customEnums?.Any() == true)
{
customEnums.Sort();
enumTypes = vanillaEnums.Concat(customEnums).Distinct().ToArray();
}
else
{
enumTypes = vanillaEnums.ToArray();
}

enumTypes = vanillaEnums.Concat(customEnums).Distinct().ToArray();

UpdateTypeChoices();
}
Expand Down

0 comments on commit 5f16d7c

Please sign in to comment.