diff options
author | TheKodeToad <TheKodeToad@proton.me> | 2023-07-01 13:05:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-01 13:05:55 +0100 |
commit | 7138425c8581e19d36ee62e1193a5b7184eb0089 (patch) | |
tree | d29efcad3353603c6ac1eb64708a92e616c00ecc /launcher/ui/pages/instance/ScreenshotsPage.cpp | |
parent | 05d2c1f0b06519eba9cc5ad22848106b49f9bd15 (diff) | |
parent | c523765c197cf63d6830d205f1554cd73e38109e (diff) | |
download | PrismLauncher-7138425c8581e19d36ee62e1193a5b7184eb0089.tar.gz PrismLauncher-7138425c8581e19d36ee62e1193a5b7184eb0089.tar.bz2 PrismLauncher-7138425c8581e19d36ee62e1193a5b7184eb0089.zip |
Merge branch 'develop' into better-component-installation
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
Diffstat (limited to 'launcher/ui/pages/instance/ScreenshotsPage.cpp')
-rw-r--r-- | launcher/ui/pages/instance/ScreenshotsPage.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/launcher/ui/pages/instance/ScreenshotsPage.cpp b/launcher/ui/pages/instance/ScreenshotsPage.cpp index ca368d3b..35237594 100644 --- a/launcher/ui/pages/instance/ScreenshotsPage.cpp +++ b/launcher/ui/pages/instance/ScreenshotsPage.cpp @@ -36,6 +36,7 @@ */ #include "ScreenshotsPage.h" +#include "BuildConfig.h" #include "ui_ScreenshotsPage.h" #include <QModelIndex> @@ -380,16 +381,18 @@ void ScreenshotsPage::on_actionUpload_triggered() if (selection.isEmpty()) return; - QString text; + QUrl baseUrl(BuildConfig.IMGUR_BASE_URL); if (selection.size() > 1) - text = tr("You are about to upload %1 screenshots.\n\n" + text = tr("You are about to upload %1 screenshots to %2.\n" + "You should double-check for personal information.\n\n" "Are you sure?") - .arg(selection.size()); + .arg(QString::number(selection.size()), baseUrl.host()); else - text = - tr("You are about to upload the selected screenshot.\n\n" - "Are you sure?"); + text = tr("You are about to upload the selected screenshot to %1.\n" + "You should double-check for personal information.\n\n" + "Are you sure?") + .arg(baseUrl.host()); auto response = CustomMessageBox::selectable(this, "Confirm Upload", text, QMessageBox::Warning, QMessageBox::Yes | QMessageBox::No, QMessageBox::No) |