From 36fe51c7f0fa9ae11474f3e5b8b6c8ac119a04d0 Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 30 Jul 2012 17:04:32 +0100 Subject: [PATCH] Add property to disable native menu on Mac. --- src/GUI/new_gui.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/GUI/new_gui.cxx b/src/GUI/new_gui.cxx index 4f9485e92..e00074254 100644 --- a/src/GUI/new_gui.cxx +++ b/src/GUI/new_gui.cxx @@ -49,10 +49,12 @@ NewGUI::NewGUI () : _active_dialog(0) { #if defined(SG_MAC) - _menubar.reset(new FGCocoaMenuBar); -#else - _menubar.reset(new FGPUIMenuBar); + if (fgGetBool("/sim/menubar/native", true)) { + _menubar.reset(new FGCocoaMenuBar); + return; + } #endif + _menubar.reset(new FGPUIMenuBar); } NewGUI::~NewGUI ()