UI: Add description to Log Reply window

master
Matt Gajownik 2020-04-06 21:37:46 +10:00
parent c878bfcb1f
commit c7eaee632a
3 changed files with 13 additions and 1 deletions

View File

@ -333,6 +333,8 @@ Output.BadPath.Text="The configured file output path is invalid. Please check yo
# log upload dialog text and messages
LogReturnDialog="Log Upload Successful"
LogReturnDialog.Description="Your log file has been uploaded. You can now share the URL for debugging or support purposes."
LogReturnDialog.Description.Crash="Your crash report has been uploaded. You can now share the URL for debugging purposes."
LogReturnDialog.CopyURL="Copy URL"
LogReturnDialog.ErrorUploadingLog="Error uploading log file"

View File

@ -14,6 +14,13 @@
<string>LogReturnDialog</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="description">
<property name="text">
<string>LogReturnDialog.Description</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>

View File

@ -25,9 +25,12 @@ OBSLogReply::OBSLogReply(QWidget *parent, const QString &url, const bool crash)
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
ui->setupUi(this);
ui->urlEdit->setText(url);
if (crash) {
ui->description->setText(
Str("LogReturnDialog.Description.Crash"));
}
installEventFilter(CreateShortcutFilter());
UNUSED_PARAMETER(crash);
}
void OBSLogReply::on_copyURL_clicked()