Merge pull request #319 from DanielSvoboda/fixed--patch-version-is-older

Fixed the button- PKG patch version is older
This commit is contained in:
Younes 2024-07-23 23:17:26 -06:00 committed by GitHub
commit 1d6a42c39a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 7 deletions

View File

@ -483,12 +483,12 @@ void MainWindow::InstallDragDropPkg(std::filesystem::path file, int pkgNum, int
msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
msgBox.setDefaultButton(QMessageBox::No);
} else if (pkgD < appD) {
QMessageBox::information(this, "PKG Extraction",
QString("Patch detected!\nPKG Version %1 is older "
"than installed version!: %2\nWould you like "
"to overwrite?")
.arg(pkg_app_version, game_app_version));
return;
msgBox.setText(QString("Patch detected!\nPKG Version %1 is older "
"than installed version!: %2\nWould you like "
"to overwrite?")
.arg(pkg_app_version, game_app_version));
msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
msgBox.setDefaultButton(QMessageBox::No);
} else {
msgBox.setText(QString("Patch detected!\nGame is installed: %1\nWould you like "
"to install Patch: %2?")