mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 08:22:32 +00:00
fixes and suggestions
This commit is contained in:
parent
c1630f7ebd
commit
78d5d265bb
@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
using namespace Common::FS;
|
using namespace Common::FS;
|
||||||
|
|
||||||
CheckUpdate::CheckUpdate(MainWindow* mainWindow, bool showMessage, QWidget* parent)
|
CheckUpdate::CheckUpdate(MainWindow* mainWindow, const bool showMessage, QWidget* parent)
|
||||||
: QDialog(parent), networkManager(new QNetworkAccessManager(this)), m_mainWindow(mainWindow) {
|
: QDialog(parent), networkManager(new QNetworkAccessManager(this)), m_mainWindow(mainWindow) {
|
||||||
setWindowTitle(tr("Auto Updater"));
|
setWindowTitle(tr("Auto Updater"));
|
||||||
setFixedSize(0, 0);
|
setFixedSize(0, 0);
|
||||||
@ -424,8 +424,10 @@ void CheckUpdate::DownloadUpdate(const QString& url) {
|
|||||||
void CheckUpdate::Install() {
|
void CheckUpdate::Install() {
|
||||||
if (m_mainWindow && m_mainWindow->isGameRunning) {
|
if (m_mainWindow && m_mainWindow->isGameRunning) {
|
||||||
QMessageBox::warning(this, tr("Update Warning"),
|
QMessageBox::warning(this, tr("Update Warning"),
|
||||||
tr("A game is currently running. Please close the game to prevent "
|
// clang-format off
|
||||||
"save file corruption."));
|
tr("A game is currently running. Please close the game to prevent save file corruption."));
|
||||||
|
// clang-format on
|
||||||
|
|
||||||
m_mainWindow->StopGameforUpdate(false);
|
m_mainWindow->StopGameforUpdate(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -226,10 +226,12 @@ void MainWindow::LoadGameLists() {
|
|||||||
|
|
||||||
#ifdef ENABLE_UPDATER
|
#ifdef ENABLE_UPDATER
|
||||||
void MainWindow::CheckUpdateMain(bool checkSave) {
|
void MainWindow::CheckUpdateMain(bool checkSave) {
|
||||||
if (checkSave && !Config::autoUpdate()) {
|
if (checkSave) {
|
||||||
return;
|
if (!Config::autoUpdate()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
auto checkUpdate = new CheckUpdate(this, false, this);
|
auto checkUpdate = new CheckUpdate(this, true, this);
|
||||||
checkUpdate->exec();
|
checkUpdate->exec();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user