From: James Turner Date: Mon, 30 Jul 2012 16:04:32 +0000 (+0100) Subject: Add property to disable native menu on Mac. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=36fe51c7f0fa9ae11474f3e5b8b6c8ac119a04d0;p=flightgear.git Add property to disable native menu on Mac. --- 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 ()