From 8fcd58038bbcc50b2d0275c9a58330a7efe06e37 Mon Sep 17 00:00:00 2001
From: Jon Evans <jon@craftyjon.com>
Date: Thu, 29 Jun 2023 23:11:50 -0400
Subject: [PATCH] Properties: fix click not working multiple times on a color

---
 common/properties/pg_editors.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/common/properties/pg_editors.cpp b/common/properties/pg_editors.cpp
index a955d05ecc..9e58e06398 100644
--- a/common/properties/pg_editors.cpp
+++ b/common/properties/pg_editors.cpp
@@ -252,5 +252,11 @@ wxPGWindowList PG_COLOR_EDITOR::CreateControls( wxPropertyGrid* aGrid, wxPGPrope
         aGrid->ChangePropertyValue( aProperty, val );
     }
 
+    // Deselect property so that this gets called again on next click
+    aGrid->CallAfter( [=]()
+                      {
+                          aGrid->RemoveFromSelection( aProperty );
+                      } );
+
     return nullptr;
 }