mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-18 17:29:28 +03:00
Ticket #2466: main menu is not drawn correctly
...after change of it visibility and activity. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
90de8381e4
commit
99b60cc2b3
@ -635,8 +635,9 @@ void
|
|||||||
layout_change (void)
|
layout_change (void)
|
||||||
{
|
{
|
||||||
setup_panels ();
|
setup_panels ();
|
||||||
/* re-init the menu, because perhaps there was a change in the way
|
/* update the main menu, because perhaps there was a change in the way
|
||||||
how the panel are split (horizontal/vertical). */
|
how the panel are split (horizontal/vertical),
|
||||||
|
and a change of menu visibility. */
|
||||||
update_menu ();
|
update_menu ();
|
||||||
load_hint (1);
|
load_hint (1);
|
||||||
}
|
}
|
||||||
|
@ -363,7 +363,6 @@ init_menu (void)
|
|||||||
right_menu = create_menu ("", create_panel_menu (), "[Left and Right Menus]");
|
right_menu = create_menu ("", create_panel_menu (), "[Left and Right Menus]");
|
||||||
menubar_add_menu (the_menubar, right_menu);
|
menubar_add_menu (the_menubar, right_menu);
|
||||||
update_menu ();
|
update_menu ();
|
||||||
menubar_set_visible (the_menubar, menubar_visible);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------------------------------- */
|
||||||
@ -1477,6 +1476,7 @@ update_menu (void)
|
|||||||
menu_set_name (left_menu, horizontal_split ? _("&Above") : _("&Left"));
|
menu_set_name (left_menu, horizontal_split ? _("&Above") : _("&Left"));
|
||||||
menu_set_name (right_menu, horizontal_split ? _("&Below") : _("&Right"));
|
menu_set_name (right_menu, horizontal_split ? _("&Below") : _("&Right"));
|
||||||
menubar_arrange (the_menubar);
|
menubar_arrange (the_menubar);
|
||||||
|
menubar_set_visible (the_menubar, menubar_visible);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user