Kaydet (Commit) 0e31d0aa authored tarafından Maxim Monastirsky's avatar Maxim Monastirsky

gtk3: Keep menubar hidden after customization

... if it was hidden before. Otherwise it becomes
out of sync with MenuBar::mbDisplayable.

Change-Id: I4957f5cef916abfa54add2901b330463364d3dba
üst b4156ece
......@@ -847,7 +847,7 @@ void GtkSalMenu::SetFrame(const SalFrame* pFrame)
g_lo_menu_insert_section( pMenuModel, 0, nullptr, mpMenuModel );
#if GTK_CHECK_VERSION(3,0,0)
if (!bUnityMode)
if (!bUnityMode && static_cast<MenuBar*>(mpVCLMenu.get())->IsDisplayable())
{
DestroyMenuBarWidget();
CreateMenuBarWidget();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment