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

View file

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

View file

@ -105,7 +105,8 @@ public sealed class DesignFileSystem : FileSystem<Design>, IDisposable, ISavable
} }
catch (Exception ex) 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); CreateDuplicateLeaf(parent, design.Name.Text, design);