Fix update of brightened objects on OSX.

The OSX implementation needs to be poked to update the
brightening / unbrightening during running of the
disambiguation menu.  (FWIW, now that I've finally seen
it in action, it's a REALLY cool feature.)

Fixes: lp:1715440
* https://bugs.launchpad.net/kicad/+bug/1715440
This commit is contained in:
Jeff Young 2017-12-12 17:16:24 +00:00 committed by Maciej Suminski
parent 33c2d6e4ba
commit dc9d17100b
1 changed files with 5 additions and 2 deletions

View File

@ -739,8 +739,11 @@ bool TOOL_MANAGER::ProcessEvent( const TOOL_EVENT& aEvent )
{
auto f = dynamic_cast<EDA_DRAW_FRAME*>( GetEditFrame() );
if( f )
f->GetGalCanvas()->Refresh(); // fixme: ugly hack, provide a method in TOOL_DISPATCHER.
if( f )
f->GetGalCanvas()->Refresh(); // fixme: ugly hack, provide a method in TOOL_DISPATCHER.
#ifdef __WXMAC__
wxTheApp->ProcessPendingEvents(); // required for updating brightening behind a popup menu
#endif
}
return hotkey_handled;