Kicad manager: fix a minor cosmetic issue when clicking on a launcher button.

- On GTK the next button was gaining the focus.
- On MSW the button disappears a bit of time.
Fixes #9676
https://gitlab.com/kicad/code/kicad/issues/9676
This commit is contained in:
jean-pierre charras 2021-11-18 13:44:23 +01:00
parent e954531ca8
commit cc339e56a2
1 changed files with 4 additions and 1 deletions

View File

@ -70,6 +70,9 @@ void PANEL_KICAD_LAUNCHER::CreateLaunchers()
// Defocus the button because leaving the large buttons
// focused after a click looks out of place in the launcher
GetParent()->SetFocus();
// Gives a slice of time to update the button state (mandatory on GTK,
// useful on MSW to avoid some cosmetic issues).
wxSafeYield();
OPT_TOOL_EVENT evt = aAction.MakeEvent();
evt->SetHasPosition( false );