mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-23 12:57:45 +00:00
Add items in the tool menu for winecfg.exe and control.exe
This commit is contained in:
parent
6a54e85a10
commit
7456f160e4
2 changed files with 16 additions and 3 deletions
|
@ -10,7 +10,6 @@
|
|||
#include <QMessageBox>
|
||||
#include <QProcess>
|
||||
#include <QComboBox>
|
||||
#include <QLineEdit>
|
||||
|
||||
#include "xivlauncher.h"
|
||||
|
||||
|
@ -113,8 +112,8 @@ SettingsWindow::SettingsWindow(LauncherWindow& window, QWidget* parent) : window
|
|||
layout->addRow(wineBox);
|
||||
#endif
|
||||
|
||||
auto currentGameDirectory = new QLineEdit(window.gamePath);
|
||||
currentGameDirectory->setEnabled(false);
|
||||
auto currentGameDirectory = new QLabel(window.gamePath);
|
||||
currentGameDirectory->setWordWrap(true);
|
||||
layout->addRow("Game Directory", currentGameDirectory);
|
||||
|
||||
auto selectDirectoryButton = new QPushButton("Select Game Directory");
|
||||
|
|
|
@ -181,6 +181,20 @@ LauncherWindow::LauncherWindow(QWidget* parent) :
|
|||
launchExecutable({gamePath + "/boot/ffxivconfig64.exe"});
|
||||
});
|
||||
|
||||
#if defined(Q_OS_MAC) || defined(Q_OS_LINUX)
|
||||
QMenu* wineMenu = toolsMenu->addMenu("Wine");
|
||||
|
||||
QAction* wineCfg = wineMenu->addAction("winecfg");
|
||||
connect(wineCfg, &QAction::triggered, [=] {
|
||||
launchExecutable({"winecfg.exe"});
|
||||
});
|
||||
|
||||
QAction* controlPanel = wineMenu->addAction("Control Panel");
|
||||
connect(controlPanel, &QAction::triggered, [=] {
|
||||
launchExecutable({"control.exe"});
|
||||
});
|
||||
#endif
|
||||
|
||||
const auto savedServerType = settings.value("serverType", 0).toInt();
|
||||
const auto savedLobbyURL = settings.value("lobbyURL", "127.0.0.1").toString();
|
||||
const auto shouldRememberUsername = settings.value("rememberUsername", false).toBool();
|
||||
|
|
Loading…
Add table
Reference in a new issue