Fix unit binder dropdown not working on windows

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20626
This commit is contained in:
Mark Roszko 2025-09-08 06:36:20 -04:00
parent 0c35068e8d
commit 0f97f51ba1

View File

@ -235,7 +235,11 @@ void UNIT_BINDER::onComboBox( wxCommandEvent& aEvent )
const wxString value = combo->GetStringSelection();
const long long int conv = ValueFromString( *m_iuScale, m_units, value, m_dataType );
SetValue( conv );
CallAfter(
[this, conv]
{
SetValue( conv );
} );
aEvent.Skip();
}