mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix: check for duplicate name on import
This commit is contained in:
parent
4282afa3a0
commit
cc26765533
1 changed files with 5 additions and 0 deletions
|
|
@ -159,6 +159,11 @@ namespace Dalamud.Interface.Internal.Windows.StyleEditor
|
|||
|
||||
newStyle.Name ??= GetRandomName();
|
||||
|
||||
if (config.SavedStyles.Any(x => x.Name == newStyle.Name))
|
||||
{
|
||||
newStyle.Name = $"{newStyle.Name} ({GetRandomName()} Mix)";
|
||||
}
|
||||
|
||||
config.SavedStyles.Add(newStyle);
|
||||
newStyle.Apply();
|
||||
appliedThisFrame = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue