Skip to content

Commit

Permalink
Make sure GUI is updated after activation of a menu item from Fl_Sys_…
Browse files Browse the repository at this point in the history
…Menu_Bar

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12584 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed Dec 7, 2017
1 parent 24a5fa7 commit dc569ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Fl_MacOS_Sys_Menu_Bar.mm
Expand Up @@ -110,6 +110,7 @@ - (void) itemCallback:(Fl_Menu_*)menu
{
const Fl_Menu_Item *item = [self getFlItem];
menu->picked(item);
Fl::flush();
if ( item->flags & FL_MENU_TOGGLE ) { // update the menu toggle symbol
[self setState:(item->value() ? NSOnState : NSOffState)];
}
Expand Down

0 comments on commit dc569ef

Please sign in to comment.