From 547573fa314c04f1a6c6c560421f492611f344fa Mon Sep 17 00:00:00 2001 From: goat <16760685+goaaats@users.noreply.github.com> Date: Mon, 27 Sep 2021 18:25:24 +0200 Subject: [PATCH] fix: don't export saved style --- .../Internal/Windows/StyleEditor/StyleEditorWindow.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dalamud/Interface/Internal/Windows/StyleEditor/StyleEditorWindow.cs b/Dalamud/Interface/Internal/Windows/StyleEditor/StyleEditorWindow.cs index b54e3ebc4..d910ad2bb 100644 --- a/Dalamud/Interface/Internal/Windows/StyleEditor/StyleEditorWindow.cs +++ b/Dalamud/Interface/Internal/Windows/StyleEditor/StyleEditorWindow.cs @@ -140,7 +140,9 @@ namespace Dalamud.Interface.Internal.Windows.StyleEditor if (ImGuiComponents.IconButton(FontAwesomeIcon.FileExport)) { - var newStyle = config.SavedStyles[this.currentSel]; + var selectedStyle = config.SavedStyles[this.currentSel]; + var newStyle = StyleModel.Get(); + newStyle.Name = selectedStyle.Name; ImGui.SetClipboardText(newStyle.ToEncoded()); }