浏览代码

UI: Add links for Facebook stream key

Richard Stanway 6 年之前
父节点
当前提交
1684b9bddb
共有 2 个文件被更改,包括 14 次插入0 次删除
  1. 7 0
      UI/window-basic-auto-config.cpp
  2. 7 0
      UI/window-basic-settings-stream.cpp

+ 7 - 0
UI/window-basic-auto-config.cpp

@@ -582,6 +582,13 @@ void AutoConfigStreamPage::UpdateKeyLink()
 		text += QTStr(
 			"Basic.AutoConfig.StreamPage.StreamKey.LinkToSite");
 		text += "</a>";
+	} else if (serviceName == "Facebook Live") {
+		text += " <a href=\"https://";
+		text += "www.facebook.com/live/create";
+		text += "\">";
+		text += QTStr(
+			"Basic.AutoConfig.StreamPage.StreamKey.LinkToSite");
+		text += "</a>";
 	}
 
 	if (isYoutube) {

+ 7 - 0
UI/window-basic-settings-stream.cpp

@@ -205,6 +205,13 @@ void OBSBasicSettings::UpdateKeyLink()
 		text += QTStr(
 			"Basic.AutoConfig.StreamPage.StreamKey.LinkToSite");
 		text += "</a>";
+	} else if (serviceName == "Facebook Live") {
+		text += " <a href=\"https://";
+		text += "www.facebook.com/live/create";
+		text += "\">";
+		text += QTStr(
+			"Basic.AutoConfig.StreamPage.StreamKey.LinkToSite");
+		text += "</a>";
 	}
 
 	ui->streamKeyLabel->setText(text);