macOS: Assign "Preferences..." to emu settings without also removing it from the config menu

This commit is contained in:
Nadia Holmquist Pedersen 2021-04-27 15:11:15 +02:00
parent 65e9e161f3
commit cffffa887e
1 changed files with 6 additions and 2 deletions

View File

@ -1241,14 +1241,18 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent)
actSetupCheats = menu->addAction("Setup cheat codes");
connect(actSetupCheats, &QAction::triggered, this, &MainWindow::onSetupCheats);
actSetupCheats->setMenuRole(QAction::NoRole);
}
{
QMenu* menu = menubar->addMenu("Config");
actEmuSettings = menu->addAction("Emu settings");
connect(actEmuSettings, &QAction::triggered, this, &MainWindow::onOpenEmuSettings);
actEmuSettings->setMenuRole(QAction::PreferencesRole);
#ifdef __APPLE__
QAction* actPreferences = menu->addAction("Preferences...");
connect(actPreferences, &QAction::triggered, this, &MainWindow::onOpenEmuSettings);
actPreferences->setMenuRole(QAction::PreferencesRole);
#endif
actInputConfig = menu->addAction("Input and hotkeys");
connect(actInputConfig, &QAction::triggered, this, &MainWindow::onOpenInputConfig);