From 6699ebc076ce1919006cd11fa235242d0ed91201 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sun, 10 Apr 2022 18:23:34 -0400 Subject: [PATCH] Force menu role on macOS for settings menu items For some reason this is broken on macOS, so let's force the menu role for now. --- src/launcherwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/launcherwindow.cpp b/src/launcherwindow.cpp index cfe04d1..c219fe4 100644 --- a/src/launcherwindow.cpp +++ b/src/launcherwindow.cpp @@ -54,6 +54,7 @@ LauncherWindow::LauncherWindow(LauncherCore& core, QWidget* parent) : QMainWindo QAction* settingsAction = fileMenu->addAction("Configure Astra..."); settingsAction->setIcon(QIcon::fromTheme("configure")); + settingsAction->setMenuRole(QAction::MenuRole::NoRole); connect(settingsAction, &QAction::triggered, [=] { auto window = new SettingsWindow(0, *this, this->core, this); connect(&this->core, &LauncherCore::settingsChanged, window, &SettingsWindow::reloadControls); @@ -62,6 +63,7 @@ LauncherWindow::LauncherWindow(LauncherCore& core, QWidget* parent) : QMainWindo QAction* profilesAction = fileMenu->addAction("Configure Profiles..."); profilesAction->setIcon(QIcon::fromTheme("configure")); + profilesAction->setMenuRole(QAction::MenuRole::NoRole); connect(profilesAction, &QAction::triggered, [=] { auto window = new SettingsWindow(1, *this, this->core, this); connect(&this->core, &LauncherCore::settingsChanged, window, &SettingsWindow::reloadControls);