From c7eaee632aa09b58e848e76a5e591d23d469f8cf Mon Sep 17 00:00:00 2001 From: Matt Gajownik Date: Mon, 6 Apr 2020 21:37:46 +1000 Subject: [PATCH] UI: Add description to Log Reply window --- UI/data/locale/en-US.ini | 2 ++ UI/forms/OBSLogReply.ui | 7 +++++++ UI/window-log-reply.cpp | 5 ++++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/UI/data/locale/en-US.ini b/UI/data/locale/en-US.ini index eef5ba45a..c52ff833d 100644 --- a/UI/data/locale/en-US.ini +++ b/UI/data/locale/en-US.ini @@ -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" diff --git a/UI/forms/OBSLogReply.ui b/UI/forms/OBSLogReply.ui index 63fb7c041..0eb477e10 100644 --- a/UI/forms/OBSLogReply.ui +++ b/UI/forms/OBSLogReply.ui @@ -14,6 +14,13 @@ LogReturnDialog + + + + LogReturnDialog.Description + + + diff --git a/UI/window-log-reply.cpp b/UI/window-log-reply.cpp index 57e23d292..6ff856872 100644 --- a/UI/window-log-reply.cpp +++ b/UI/window-log-reply.cpp @@ -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()