This commit is contained in:
Ottermandias 2024-01-25 16:14:27 +01:00
parent fce8b058b0
commit 46fcac6c7d
3 changed files with 9 additions and 8 deletions

View file

@ -231,9 +231,9 @@ public class AutoDesignManager : ISavable, IReadOnlyList<AutoDesignSet>, IDispos
{
var newDesign = new AutoDesign()
{
Design = design,
Type = ApplicationType.All,
Jobs = _jobs.JobGroups[1],
Design = design,
Type = ApplicationType.All,
Jobs = _jobs.JobGroups[1],
};
set.Designs.Add(newDesign);
Save();
@ -494,8 +494,8 @@ public class AutoDesignManager : ISavable, IReadOnlyList<AutoDesignSet>, IDispos
var ret = new AutoDesign
{
Design = design,
Type = applicationType & ApplicationType.All,
Design = design,
Type = applicationType & ApplicationType.All,
};
return ParseConditions(setName, jObj, ret) ? ret : null;
}

View file

@ -62,10 +62,10 @@ public unsafe struct DesignData
=> CrestVisibility.HasFlag(slot);
public FullEquipType MainhandType
public readonly FullEquipType MainhandType
=> _typeMainhand;
public FullEquipType OffhandType
public readonly FullEquipType OffhandType
=> _typeOffhand;
public readonly EquipItem Item(EquipSlot slot)

View file

@ -105,7 +105,8 @@ public sealed class DesignFileSystem : FileSystem<Design>, IDisposable, ISavable
}
catch (Exception ex)
{
Glamourer.Messager.NotificationMessage(ex, $"Could not move design to {path} because the folder could not be created.", NotificationType.Error);
Glamourer.Messager.NotificationMessage(ex, $"Could not move design to {path} because the folder could not be created.",
NotificationType.Error);
}
CreateDuplicateLeaf(parent, design.Name.Text, design);