Fix missing main menu after disabling systray icon
After the systray icon is disabled the titlebar still references the old menu. With this patch the titebar gets updated with the new menu.
After the systray icon is disabled the titlebar still references the old menu. With this patch the titebar gets updated with the new menu.