aboutsummaryrefslogtreecommitdiff
path: root/launcher
diff options
context:
space:
mode:
authorseth <getchoo@tuta.io>2023-06-27 20:01:18 +0000
committerGitHub <noreply@github.com>2023-06-27 20:01:18 +0000
commit90fc72019063467aa292501a9da0405a4c7fc552 (patch)
tree9ec3ba00ef6384062c8a58ca27a332e58a268719 /launcher
parent904b128afe180a24d697723ae40325c0adc4d2ef (diff)
parent54cb077b40b1785174a9bd111d055a399b725e52 (diff)
downloadPrismLauncher-90fc72019063467aa292501a9da0405a4c7fc552.tar.gz
PrismLauncher-90fc72019063467aa292501a9da0405a4c7fc552.tar.bz2
PrismLauncher-90fc72019063467aa292501a9da0405a4c7fc552.zip
Merge pull request #1281 from Trial97/screenshot
Added more information to the screenshot upload warning
Diffstat (limited to 'launcher')
-rw-r--r--launcher/ui/pages/instance/ScreenshotsPage.cpp15
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)