diff --git a/WaymarkStudio/Windows/StudioWindow.cs b/WaymarkStudio/Windows/StudioWindow.cs index 47403f1..619426b 100644 --- a/WaymarkStudio/Windows/StudioWindow.cs +++ b/WaymarkStudio/Windows/StudioWindow.cs @@ -498,11 +498,12 @@ internal void DrawPresetRow(int i, WaymarkPreset preset, bool isReadOnly = false ImGui.CloseCurrentPopup(); deleteIndex = i; } - if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.FileExport, "Export to clipboard", size: size, defaultColor: new())) - { - ImGui.CloseCurrentPopup(); - ImGui.SetClipboardText(preset.Export()); - } + using (ImRaii.Disabled(preset.PendingHeightAdjustment.IsAnySet())) + if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.FileExport, "Export to clipboard", size: size, defaultColor: new())) + { + ImGui.CloseCurrentPopup(); + ImGui.SetClipboardText(preset.Export()); + } ImGui.EndPopup(); } }