mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-23 04:57:44 +00:00
Fix icons on configure menu items
This commit is contained in:
parent
17b5130eb7
commit
e4df844c44
1 changed files with 3 additions and 3 deletions
|
@ -53,7 +53,7 @@ LauncherWindow::LauncherWindow(LauncherCore& core, QWidget* parent) : QMainWindo
|
||||||
QMenu* fileMenu = menuBar()->addMenu("Settings");
|
QMenu* fileMenu = menuBar()->addMenu("Settings");
|
||||||
|
|
||||||
QAction* settingsAction = fileMenu->addAction("Configure Astra...");
|
QAction* settingsAction = fileMenu->addAction("Configure Astra...");
|
||||||
settingsAction->setIcon(QIcon::fromTheme("settings"));
|
settingsAction->setIcon(QIcon::fromTheme("configure"));
|
||||||
connect(settingsAction, &QAction::triggered, [=] {
|
connect(settingsAction, &QAction::triggered, [=] {
|
||||||
auto window = new SettingsWindow(0, *this, this->core, this);
|
auto window = new SettingsWindow(0, *this, this->core, this);
|
||||||
connect(&this->core, &LauncherCore::settingsChanged, window, &SettingsWindow::reloadControls);
|
connect(&this->core, &LauncherCore::settingsChanged, window, &SettingsWindow::reloadControls);
|
||||||
|
@ -61,7 +61,7 @@ LauncherWindow::LauncherWindow(LauncherCore& core, QWidget* parent) : QMainWindo
|
||||||
});
|
});
|
||||||
|
|
||||||
QAction* profilesAction = fileMenu->addAction("Configure Profiles...");
|
QAction* profilesAction = fileMenu->addAction("Configure Profiles...");
|
||||||
profilesAction->setIcon(QIcon::fromTheme("settings"));
|
profilesAction->setIcon(QIcon::fromTheme("configure"));
|
||||||
connect(profilesAction, &QAction::triggered, [=] {
|
connect(profilesAction, &QAction::triggered, [=] {
|
||||||
auto window = new SettingsWindow(1, *this, this->core, this);
|
auto window = new SettingsWindow(1, *this, this->core, this);
|
||||||
connect(&this->core, &LauncherCore::settingsChanged, window, &SettingsWindow::reloadControls);
|
connect(&this->core, &LauncherCore::settingsChanged, window, &SettingsWindow::reloadControls);
|
||||||
|
@ -72,7 +72,7 @@ LauncherWindow::LauncherWindow(LauncherCore& core, QWidget* parent) : QMainWindo
|
||||||
fileMenu->addSeparator();
|
fileMenu->addSeparator();
|
||||||
|
|
||||||
wineCfg = fileMenu->addAction("Configure Wine...");
|
wineCfg = fileMenu->addAction("Configure Wine...");
|
||||||
wineCfg->setIcon(QIcon::fromTheme("settings"));
|
wineCfg->setIcon(QIcon::fromTheme("configure"));
|
||||||
connect(wineCfg, &QAction::triggered, [=] {
|
connect(wineCfg, &QAction::triggered, [=] {
|
||||||
this->core.launchExternalTool(currentProfile(), {"winecfg.exe"});
|
this->core.launchExternalTool(currentProfile(), {"winecfg.exe"});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue