From de6f703d7dc93d5a17ccaab6de9398b881c324a9 Mon Sep 17 00:00:00 2001 From: DanielSvoboda Date: Tue, 23 Jul 2024 19:21:54 -0300 Subject: [PATCH] I fixed the button, PKG patch version is older I fixed the button, PKG patch version is older --- src/qt_gui/main_window.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/qt_gui/main_window.cpp b/src/qt_gui/main_window.cpp index ee7ab650..3f325ff4 100644 --- a/src/qt_gui/main_window.cpp +++ b/src/qt_gui/main_window.cpp @@ -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?") @@ -709,4 +709,4 @@ void MainWindow::CreateRecentGameActions() { Core::Emulator emulator; emulator.Run(gamePath.toUtf8().constData()); }); -} \ No newline at end of file +}