Skip to content

Commit

Permalink
Disable export of pending adjustment presets
Browse files Browse the repository at this point in the history
  • Loading branch information
sourpuh committed Jan 4, 2025
1 parent 98de7e1 commit 12cd3a4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions WaymarkStudio/Windows/StudioWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit 12cd3a4

Please sign in to comment.