#include "settingswindow.h" #include #include #include #include "xivlauncher.h" SettingsWindow::SettingsWindow(LauncherWindow& window, QWidget* parent) : window(window), QWidget(parent) { setWindowTitle("Settings"); setWindowModality(Qt::WindowModality::ApplicationModal); auto layout = new QFormLayout(this); setLayout(layout); auto gameDirectoryButton = new QPushButton("Open Game Directory"); connect(gameDirectoryButton, &QPushButton::pressed, [this] { QDesktopServices::openUrl("file://" + this->window.gamePath); }); layout->addRow(gameDirectoryButton); }