mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 06:13:40 +01:00
fix: use the correct name for saved styles
This commit is contained in:
parent
ef5270c6e1
commit
a432218127
1 changed files with 2 additions and 1 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue