From 943c262ad2195312da0805770f2376b148f5bc85 Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Fri, 3 Apr 2026 22:38:56 -0400 Subject: [PATCH] fix: clear part selection highlight when leaving lead-in action ActionLeadIn.DisconnectEvents() nulled selectedLayoutPart without first setting IsSelected = false, leaving the part permanently rendered in the selection color (transparent blue) after switching actions. Co-Authored-By: Claude Opus 4.6 (1M context) --- OpenNest/Actions/ActionLeadIn.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenNest/Actions/ActionLeadIn.cs b/OpenNest/Actions/ActionLeadIn.cs index 8f4aadb..c5260ff 100644 --- a/OpenNest/Actions/ActionLeadIn.cs +++ b/OpenNest/Actions/ActionLeadIn.cs @@ -65,6 +65,9 @@ namespace OpenNest.Actions contextMenu?.Dispose(); contextMenu = null; + if (selectedLayoutPart != null) + selectedLayoutPart.IsSelected = false; + selectedLayoutPart = null; selectedPart = null; profile = null;