Added native menu option to hex editor.

This commit is contained in:
Matthew Budd 2020-08-25 18:41:58 -04:00
parent 67f6be539a
commit a624278fca
2 changed files with 6 additions and 1 deletions

View File

@ -1036,7 +1036,7 @@ void consoleWin_t::openHexEditor(void)
delete hexEditWin;
//printf("GUI Cheat Window Destroyed\n");
//printf("GUI Hex Editor Window Destroyed\n");
}
void consoleWin_t::toggleAutoResume(void)

View File

@ -290,6 +290,7 @@ HexEditorDialog_t::HexEditorDialog_t(QWidget *parent)
QAction *viewRAM, *viewPPU, *viewOAM, *viewROM;
QAction *actHlgt, *actHlgtRV, *actColorFG, *actColorBG;
QActionGroup *group;
int useNativeMenuBar;
setWindowTitle("Hex Editor");
@ -297,6 +298,10 @@ HexEditorDialog_t::HexEditorDialog_t(QWidget *parent)
menuBar = new QMenuBar(this);
// This is needed for menu bar to show up on MacOS
g_config->getOption( "SDL.UseNativeMenuBar", &useNativeMenuBar );
menuBar->setNativeMenuBar( useNativeMenuBar ? true : false );
//-----------------------------------------------------------------------
// Menu
//-----------------------------------------------------------------------