[chore:] added "-new"-part to names of AddressSets if the name already exists (will be improved further)
This commit is contained in:
@@ -11,6 +11,13 @@ public class KasAddressList //Address-Set
|
||||
{
|
||||
KasPersons = new List<KasPerson>();
|
||||
Name = name;
|
||||
foreach (var set in Settings._instance.addressSets.addresses)
|
||||
{
|
||||
if (Name == set.Name)
|
||||
{
|
||||
Name = name + "-new";
|
||||
}
|
||||
}
|
||||
var highest = 0;
|
||||
foreach (var k in Settings._instance.addressSets.addresses)
|
||||
if (highest <= k.ID)
|
||||
|
||||
Reference in New Issue
Block a user