Fix oversight with the preferences action causing the build to fail on macOS

This commit is contained in:
Nadia Holmquist Pedersen 2022-09-22 18:42:34 +02:00
parent b171038c85
commit 2b550192e7
2 changed files with 4 additions and 1 deletions

View File

@ -1526,7 +1526,7 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent)
connect(actEmuSettings, &QAction::triggered, this, &MainWindow::onOpenEmuSettings);
#ifdef __APPLE__
QAction* actPreferences = menu->addAction("Preferences...");
actPreferences = menu->addAction("Preferences...");
connect(actPreferences, &QAction::triggered, this, &MainWindow::onOpenEmuSettings);
actPreferences->setMenuRole(QAction::PreferencesRole);
#endif

View File

@ -353,6 +353,9 @@ public:
QAction* actMPNewInstance;
QAction* actEmuSettings;
#ifdef __APPLE__
QAction* actPreferences;
#endif
QAction* actPowerManagement;
QAction* actInputConfig;
QAction* actVideoSettings;