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:
parent
e954531ca8
commit
cc339e56a2
|
@ -67,9 +67,12 @@ void PANEL_KICAD_LAUNCHER::CreateLaunchers()
|
||||||
auto handler =
|
auto handler =
|
||||||
[&]( wxEvent& aEvent )
|
[&]( wxEvent& aEvent )
|
||||||
{
|
{
|
||||||
// Defocus the button because leaving the large buttons
|
// Defocus the button because leaving the large buttons
|
||||||
// focused after a click looks out of place in the launcher
|
// focused after a click looks out of place in the launcher
|
||||||
GetParent()->SetFocus();
|
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();
|
OPT_TOOL_EVENT evt = aAction.MakeEvent();
|
||||||
evt->SetHasPosition( false );
|
evt->SetHasPosition( false );
|
||||||
|
|
Loading…
Reference in New Issue