mirror of
https://github.com/fltk/fltk.git
synced 2026-05-27 02:46:34 +08:00
Keep indicator that menubar is still active (#551)
This commit is contained in:
+3
-2
@@ -842,9 +842,10 @@ int menuwindow::handle_part1(int e) {
|
||||
return 1;
|
||||
}
|
||||
if (pp.current_item && pp.menu_number==0 && !pp.current_item->submenu()) {
|
||||
if (e==FL_PUSH)
|
||||
if (e==FL_PUSH) {
|
||||
pp.state = DONE_STATE;
|
||||
setitem(0, -1, 0);
|
||||
setitem(0, -1, 0);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
// all others can stay selected
|
||||
|
||||
Reference in New Issue
Block a user