mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-21 05:09:46 -06:00
macOS: Assign "Preferences..." to emu settings without also removing it from the config menu
This commit is contained in:
@ -1241,14 +1241,18 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent)
|
|||||||
|
|
||||||
actSetupCheats = menu->addAction("Setup cheat codes");
|
actSetupCheats = menu->addAction("Setup cheat codes");
|
||||||
connect(actSetupCheats, &QAction::triggered, this, &MainWindow::onSetupCheats);
|
connect(actSetupCheats, &QAction::triggered, this, &MainWindow::onSetupCheats);
|
||||||
actSetupCheats->setMenuRole(QAction::NoRole);
|
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
QMenu* menu = menubar->addMenu("Config");
|
QMenu* menu = menubar->addMenu("Config");
|
||||||
|
|
||||||
actEmuSettings = menu->addAction("Emu settings");
|
actEmuSettings = menu->addAction("Emu settings");
|
||||||
connect(actEmuSettings, &QAction::triggered, this, &MainWindow::onOpenEmuSettings);
|
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");
|
actInputConfig = menu->addAction("Input and hotkeys");
|
||||||
connect(actInputConfig, &QAction::triggered, this, &MainWindow::onOpenInputConfig);
|
connect(actInputConfig, &QAction::triggered, this, &MainWindow::onOpenInputConfig);
|
||||||
|
Reference in New Issue
Block a user