mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-04 04:16:57 +03:00
Apply suggestions from code review
Co-authored-by: Alexandru Ionut Tripon <alexandru.tripon97@gmail.com>
Signed-off-by: maskers <97827489+maskersss@users.noreply.github.com>
(cherry picked from commit 99bd4a8937)
This commit is contained in:
parent
0cb5ac7a06
commit
589ee73bfd
1 changed files with 4 additions and 6 deletions
|
|
@ -115,17 +115,15 @@ std::optional<QString> GuiUtil::uploadPaste(const QString& name, const QString&
|
|||
QMessageBox::Warning, QMessageBox::Yes | QMessageBox::No, QMessageBox::No)
|
||||
->exec();
|
||||
|
||||
if (truncateResponse == QMessageBox::Yes)
|
||||
shouldTruncate = true;
|
||||
shouldTruncate = truncateResponse == QMessageBox::Yes;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
QString textToUpload;
|
||||
if (shouldTruncate)
|
||||
QString textToUpload = text;
|
||||
if (shouldTruncate) {
|
||||
textToUpload = truncateLogForMclogs(text);
|
||||
else
|
||||
textToUpload = text;
|
||||
}
|
||||
|
||||
std::unique_ptr<PasteUpload> paste(new PasteUpload(parentWidget, textToUpload, pasteCustomAPIBaseSetting, pasteTypeSetting));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue