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 <QCheckBox>
|
||||
#include <QGroupBox>
|
||||
#include <QMessageBox>
|
||||
#include <QProcess>
|
||||
|
||||
#include "xivlauncher.h"
|
||||
|
||||
|
@ -75,6 +77,8 @@ SettingsWindow::SettingsWindow(LauncherWindow& window, QWidget* parent) : window
|
|||
connect(selectDirectoryButton, &QPushButton::pressed, [this, currentGameDirectory] {
|
||||
this->window.gamePath = QFileDialog::getExistingDirectory(this, "Open Game Directory");
|
||||
currentGameDirectory->setText(this->window.gamePath);
|
||||
|
||||
this->window.readInitialInformation();
|
||||
});
|
||||
layout->addWidget(selectDirectoryButton);
|
||||
|
||||
|
|
|
@ -41,12 +41,11 @@ public:
|
|||
void buildRequest(QNetworkRequest& request);
|
||||
void setSSL(QNetworkRequest& request);
|
||||
QString readVersion(QString path);
|
||||
void readInitialInformation();
|
||||
|
||||
QSettings settings;
|
||||
|
||||
private:
|
||||
void readInitialInformation();
|
||||
|
||||
SapphireLauncher* sapphireLauncher;
|
||||
SquareBoot* squareBoot;
|
||||
SquareLauncher* squareLauncher;
|
||||
|
|
Loading…
Add table
Reference in a new issue