fix: use the correct name for saved styles

This commit is contained in:
goat 2021-09-29 02:36:21 +02:00
parent ef5270c6e1
commit a432218127
No known key found for this signature in database
GPG key ID: F18F057873895461

View file

@ -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<DalamudConfiguration>.Get();
var newStyle = StyleModel.Get();
newStyle.Name = config.ChosenStyle;
newStyle.Name = config.SavedStyles[this.currentSel].Name;
config.SavedStyles[this.currentSel] = newStyle;
newStyle.Apply();