From 67cb4ac8bdaff8294e9bc6407596b529443b7551 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 14 Jul 2022 16:30:06 +0300 Subject: [PATCH 39/39] gtk4: Hide menubar when returning to main menu See osdn #45098 Signed-off-by: Marko Lindqvist --- client/gui-gtk-4.0/gui_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/gui-gtk-4.0/gui_main.c b/client/gui-gtk-4.0/gui_main.c index d60de001e7..9582582d86 100644 --- a/client/gui-gtk-4.0/gui_main.c +++ b/client/gui-gtk-4.0/gui_main.c @@ -1052,13 +1052,13 @@ void enable_menus(bool enable) while (g_main_context_pending(NULL)) { g_main_context_iteration(NULL, FALSE); } - - gtk_application_window_set_show_menubar(GTK_APPLICATION_WINDOW(toplevel), TRUE); } + gtk_application_window_set_show_menubar(GTK_APPLICATION_WINDOW(toplevel), TRUE); gtk_application_set_menubar(fc_app, G_MENU_MODEL(main_menubar)); } else { + gtk_application_window_set_show_menubar(GTK_APPLICATION_WINDOW(toplevel), FALSE); gtk_application_set_menubar(fc_app, NULL); } -- 2.35.1