mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-23 21:07:45 +00:00
Reread version info if game path changed
This commit is contained in:
parent
ee7592ea9c
commit
b8893ee0b0
2 changed files with 5 additions and 2 deletions
|
@ -7,6 +7,8 @@
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QCheckBox>
|
#include <QCheckBox>
|
||||||
#include <QGroupBox>
|
#include <QGroupBox>
|
||||||
|
#include <QMessageBox>
|
||||||
|
#include <QProcess>
|
||||||
|
|
||||||
#include "xivlauncher.h"
|
#include "xivlauncher.h"
|
||||||
|
|
||||||
|
@ -75,6 +77,8 @@ SettingsWindow::SettingsWindow(LauncherWindow& window, QWidget* parent) : window
|
||||||
connect(selectDirectoryButton, &QPushButton::pressed, [this, currentGameDirectory] {
|
connect(selectDirectoryButton, &QPushButton::pressed, [this, currentGameDirectory] {
|
||||||
this->window.gamePath = QFileDialog::getExistingDirectory(this, "Open Game Directory");
|
this->window.gamePath = QFileDialog::getExistingDirectory(this, "Open Game Directory");
|
||||||
currentGameDirectory->setText(this->window.gamePath);
|
currentGameDirectory->setText(this->window.gamePath);
|
||||||
|
|
||||||
|
this->window.readInitialInformation();
|
||||||
});
|
});
|
||||||
layout->addWidget(selectDirectoryButton);
|
layout->addWidget(selectDirectoryButton);
|
||||||
|
|
||||||
|
|
|
@ -41,12 +41,11 @@ public:
|
||||||
void buildRequest(QNetworkRequest& request);
|
void buildRequest(QNetworkRequest& request);
|
||||||
void setSSL(QNetworkRequest& request);
|
void setSSL(QNetworkRequest& request);
|
||||||
QString readVersion(QString path);
|
QString readVersion(QString path);
|
||||||
|
void readInitialInformation();
|
||||||
|
|
||||||
QSettings settings;
|
QSettings settings;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void readInitialInformation();
|
|
||||||
|
|
||||||
SapphireLauncher* sapphireLauncher;
|
SapphireLauncher* sapphireLauncher;
|
||||||
SquareBoot* squareBoot;
|
SquareBoot* squareBoot;
|
||||||
SquareLauncher* squareLauncher;
|
SquareLauncher* squareLauncher;
|
||||||
|
|
Loading…
Add table
Reference in a new issue