apply suggestion from code review

Co-authored-by: TheKodeToad <TheKodeToad@proton.me>
Signed-off-by: maskers <97827489+maskersss@users.noreply.github.com>
(cherry picked from commit a910337e9d148937fc6a7339a7bcdd9a2db1ec03)
This commit is contained in:
maskers 2024-08-22 21:42:05 +03:00 committed by github-actions[bot]
parent 417bb2fce6
commit 3048e43900

View File

@ -103,11 +103,11 @@ std::optional<QString> GuiUtil::uploadPaste(const QString& name, const QString&
if (baseUrl.toString() == "https://api.mclo.gs" && text.count("\n") > MaxMclogsLines) {
auto truncateResponse = CustomMessageBox::selectable(
parentWidget, QObject::tr("Confirm Truncate"),
QObject::tr("The log exceeds mclo.gs' limit: %1 lines (max %2).\n"
"Prism can keep the first %3 and last %4 lines, trimming the middle.\n\n"
QObject::tr("The log has %1 lines, exceeding mclo.gs' limit of %2.\n"
"The launcher can keep the first %3 and last %4 lines, trimming the middle.\n\n"
"If you choose 'No', mclo.gs will only keep the first %2 lines, cutting off "
"potentially useful info like crashes at the end.\n\n"
"Proceed with Prism's truncation?")
"Proceed with truncation?")
.arg(text.count("\n"))
.arg(MaxMclogsLines)
.arg(InitialMclogsLines)