From a432218127dc804ef31413b04c73242033f86de1 Mon Sep 17 00:00:00 2001 From: goat <16760685+goaaats@users.noreply.github.com> Date: Wed, 29 Sep 2021 02:36:21 +0200 Subject: [PATCH] fix: use the correct name for saved styles --- .../Internal/Windows/StyleEditor/StyleEditorWindow.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dalamud/Interface/Internal/Windows/StyleEditor/StyleEditorWindow.cs b/Dalamud/Interface/Internal/Windows/StyleEditor/StyleEditorWindow.cs index 41a6eae93..e3da31a5e 100644 --- a/Dalamud/Interface/Internal/Windows/StyleEditor/StyleEditorWindow.cs +++ b/Dalamud/Interface/Internal/Windows/StyleEditor/StyleEditorWindow.cs @@ -314,6 +314,7 @@ namespace Dalamud.Interface.Internal.Windows.StyleEditor this.SaveStyle(); config.ChosenStyle = config.SavedStyles[this.currentSel].Name; + Log.Verbose("ChosenStyle = {ChosenStyle}", config.ChosenStyle); this.didSave = true; @@ -359,7 +360,7 @@ namespace Dalamud.Interface.Internal.Windows.StyleEditor var config = Service.Get(); var newStyle = StyleModel.Get(); - newStyle.Name = config.ChosenStyle; + newStyle.Name = config.SavedStyles[this.currentSel].Name; config.SavedStyles[this.currentSel] = newStyle; newStyle.Apply();