Browse Source

UI: Add description to Log Reply window

Matt Gajownik 5 years ago
parent
commit
c7eaee632a
3 changed files with 13 additions and 1 deletions
  1. 2 0
      UI/data/locale/en-US.ini
  2. 7 0
      UI/forms/OBSLogReply.ui
  3. 4 1
      UI/window-log-reply.cpp

+ 2 - 0
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"
 

+ 7 - 0
UI/forms/OBSLogReply.ui

@@ -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>

+ 4 - 1
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()