diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-02-27 10:41:50 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-02-27 10:41:50 +0100 |
| commit | 3d57d9136b2032a050c0cbed4546896934095499 (patch) | |
| tree | 6b3700b7cc2093a23c5049e934513716a47fa5c6 /src | |
| parent | a1b2d547584ce5631ed983fe7ede4e7a02a0723c (diff) | |
Avoid recreation of the system menu bar without change
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 6bbdd731c..ada24a1e3 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -1341,7 +1341,7 @@ static FLWindowDelegate *flwindowdelegate_instance = nil; Fl_Menu_Item *item = (Fl_Menu_Item*)fl_sys_menu_bar->menu() + index; if (!item->label()) break; if (item->user_data() == window) { - fl_sys_menu_bar->setonly(item); + if (!item->value()) fl_sys_menu_bar->setonly(item); break; } index++; |
