From 54def611fa12676607cfe7424e59fc69c01db007 Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Fri, 10 Apr 2026 17:52:03 -0400 Subject: [PATCH] refactor(ui): switch CreateShapeFromInputs to control-type branching --- OpenNest/Forms/ShapeLibraryForm.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OpenNest/Forms/ShapeLibraryForm.cs b/OpenNest/Forms/ShapeLibraryForm.cs index 1a8b943..3c9e6bd 100644 --- a/OpenNest/Forms/ShapeLibraryForm.cs +++ b/OpenNest/Forms/ShapeLibraryForm.cs @@ -363,9 +363,8 @@ namespace OpenNest.Forms continue; } - if (binding.Property.PropertyType == typeof(string)) + if (binding.Control is ComboBox combo) { - var combo = (ComboBox)binding.Control; binding.Property.SetValue(shape, combo.SelectedItem?.ToString()); continue; }