diff --git a/Glamourer/GlamourerConfig.cs b/Glamourer/GlamourerConfig.cs index f8cce1c..39b04f3 100644 --- a/Glamourer/GlamourerConfig.cs +++ b/Glamourer/GlamourerConfig.cs @@ -5,12 +5,12 @@ namespace Glamourer { public class GlamourerConfig : IPluginConfiguration { - public struct FixedDesign + public class FixedDesign { - public string Name; - public string Path; + public string Name = string.Empty; + public string Path = string.Empty; public uint JobGroups; - public bool Enabled; + public bool Enabled; } public int Version { get; set; } = 1; diff --git a/Glamourer/Gui/InterfaceFixedDesigns.cs b/Glamourer/Gui/InterfaceFixedDesigns.cs index 672507b..e0aa9c8 100644 --- a/Glamourer/Gui/InterfaceFixedDesigns.cs +++ b/Glamourer/Gui/InterfaceFixedDesigns.cs @@ -72,7 +72,11 @@ namespace Glamourer.Gui if (ImGui.Checkbox($"##Enabled{i}", ref tmp)) if (tmp && _plugin.FixedDesigns.EnableDesign(name) || !tmp && _plugin.FixedDesigns.DisableDesign(name)) + { + Glamourer.Config.FixedDesigns[i].Enabled = tmp; Glamourer.Config.Save(); + } + raii.PopStyles(); raii.PopFonts(); ImGui.TableNextColumn();