mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-24 05:17:46 +00:00
Finally, set the correct menu roles on macOS
"Configure Wine..." was accidentally picked up as the preferences, but now the real settings window is in the preferences' role.
This commit is contained in:
parent
32ab6b7bba
commit
b7ecfb3ebf
1 changed files with 2 additions and 1 deletions
|
@ -55,7 +55,7 @@ LauncherWindow::LauncherWindow(LauncherCore& core, QWidget* parent) : QMainWindo
|
|||
|
||||
QAction* settingsAction = fileMenu->addAction("Configure Astra...");
|
||||
settingsAction->setIcon(QIcon::fromTheme("configure"));
|
||||
settingsAction->setMenuRole(QAction::MenuRole::NoRole);
|
||||
settingsAction->setMenuRole(QAction::MenuRole::PreferencesRole);
|
||||
connect(settingsAction, &QAction::triggered, [=] {
|
||||
auto window = new SettingsWindow(0, *this, this->core, this);
|
||||
connect(&this->core, &LauncherCore::settingsChanged, window, &SettingsWindow::reloadControls);
|
||||
|
@ -75,6 +75,7 @@ LauncherWindow::LauncherWindow(LauncherCore& core, QWidget* parent) : QMainWindo
|
|||
fileMenu->addSeparator();
|
||||
|
||||
wineCfg = fileMenu->addAction("Configure Wine...");
|
||||
wineCfg->setMenuRole(QAction::MenuRole::NoRole);
|
||||
wineCfg->setIcon(QIcon::fromTheme("configure"));
|
||||
connect(wineCfg, &QAction::triggered, [=] {
|
||||
this->core.launchExternalTool(currentProfile(), {"winecfg.exe"});
|
||||
|
|
Loading…
Add table
Reference in a new issue