From 8b77d52f985ac2b3049b5b7a71331a67b8e9bf76 Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Sat, 28 Nov 2026 14:43:26 -0500 Subject: [PATCH] fix(desktop): paint the cut planner before it captures the plates Plan capture runs on the UI thread, so the panel stayed blank for several seconds when planning every plate of a large nest. Paint the window with its "Planning..." status first. Co-Authored-By: Claude Sonnet 5.5 --- .../Forms/CuttingInspectionPanelTests.cs | 21 +++++++++++++++++++ OpenNest/Forms/CuttingInspectionPanel.cs | 11 ++++++++++ 2 files changed, 32 insertions(+) diff --git a/OpenNest.WinForms.Tests/Forms/CuttingInspectionPanelTests.cs b/OpenNest.WinForms.Tests/Forms/CuttingInspectionPanelTests.cs index 6ab144fd..50edaace 100644 --- a/OpenNest.WinForms.Tests/Forms/CuttingInspectionPanelTests.cs +++ b/OpenNest.WinForms.Tests/Forms/CuttingInspectionPanelTests.cs @@ -613,6 +613,27 @@ public class CuttingInspectionPanelTests panel.RequestClose(); }); + [Fact] + public void PlanningStatusIsPaintedBeforePlanningHoldsTheUiThread() => RunSta(() => + { + using var editor = Editor(); + editor.Show(); + editor.PlateManager.LoadAt(0); + editor.OpenCuttingInspection(); + var panel = editor.CuttingInspection!; + PumpUntil(() => panel.Proposal != null && !panel.IsPlanning); + var status = Field