7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-07 22:35:32 +00:00

Properties: fix click not working multiple times on a color

This commit is contained in:
Jon Evans 2023-06-29 23:11:50 -04:00
parent 59495971ee
commit 8fcd58038b

View File

@ -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;
}