diff options
author | dada513 <dada513@protonmail.com> | 2022-03-28 20:55:03 +0200 |
---|---|---|
committer | dada513 <dada513@protonmail.com> | 2022-03-28 20:55:03 +0200 |
commit | 3a7eeff135f92c807fdc066cb06d835f295b66d3 (patch) | |
tree | d2c49cbe36416054584e7f8414c3a0a5c4e1fd5e /launcher/ui/pages/global/LauncherPage.cpp | |
parent | 424f4a72ffd4d5e6748559d2ce76ec2fd3b4cde1 (diff) | |
download | PrismLauncher-3a7eeff135f92c807fdc066cb06d835f295b66d3.tar.gz PrismLauncher-3a7eeff135f92c807fdc066cb06d835f295b66d3.tar.bz2 PrismLauncher-3a7eeff135f92c807fdc066cb06d835f295b66d3.zip |
Fix
Diffstat (limited to 'launcher/ui/pages/global/LauncherPage.cpp')
-rw-r--r-- | launcher/ui/pages/global/LauncherPage.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/launcher/ui/pages/global/LauncherPage.cpp b/launcher/ui/pages/global/LauncherPage.cpp index c3dde8e6..42ad5ae3 100644 --- a/launcher/ui/pages/global/LauncherPage.cpp +++ b/launcher/ui/pages/global/LauncherPage.cpp @@ -49,7 +49,6 @@ #include "Application.h" #include "BuildConfig.h" #include "ui/themes/ITheme.h" -#include "Flatpak.h" #include <QApplication> #include <QProcess> @@ -136,28 +135,27 @@ void LauncherPage::on_instDirBrowseBtn_clicked() warning.setInformativeText( tr("Do you really want to use this path? " "Selecting \"No\" will close this and not alter your instance path.")); - warning.setStandardButtons(QMessageBox::Yes | QMessageBox::No); + warning.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel); int result = warning.exec(); - if (result == QMessageBox::Yes) + if (result == QMessageBox::Ok) { ui->instDirTextBox->setText(cooked_dir); } } - else if(Flatpak::IsFlatpak() && raw_dir.startsWith("/run/user")) + else if(APPLICATION->isFlatpak() && raw_dir.startsWith("/run/user")) { QMessageBox warning; warning.setText(tr("You're trying to specify an instance folder " "which was granted temporaily via Flatpak.\n" - "This is known to cause problems, " - "after a restart the launcher might break, " + "This is known to cause problems. " + "After a restart the launcher might break, " "because it will no longer have access to that directory.\n\n" "Granting PolyMC access to it via Flatseal is recommended.")); warning.setInformativeText( - tr("Do you really want to use this path?\n" - "Selecting \"No\" will close this and not alter your instance path.")); - warning.setStandardButtons(QMessageBox::Yes | QMessageBox::No); + tr("Do you want to proceed anyway?")); + warning.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel); int result = warning.exec(); - if (result == QMessageBox::Yes) + if (result == QMessageBox::Ok) { ui->instDirTextBox->setText(cooked_dir); } |