Jelajahi Sumber

UI: Add links for Facebook stream key

Richard Stanway 6 tahun lalu
induk
melakukan
1684b9bddb
2 mengubah file dengan 14 tambahan dan 0 penghapusan
  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(
 		text += QTStr(
 			"Basic.AutoConfig.StreamPage.StreamKey.LinkToSite");
 			"Basic.AutoConfig.StreamPage.StreamKey.LinkToSite");
 		text += "</a>";
 		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) {
 	if (isYoutube) {

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

@@ -205,6 +205,13 @@ void OBSBasicSettings::UpdateKeyLink()
 		text += QTStr(
 		text += QTStr(
 			"Basic.AutoConfig.StreamPage.StreamKey.LinkToSite");
 			"Basic.AutoConfig.StreamPage.StreamKey.LinkToSite");
 		text += "</a>";
 		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);
 	ui->streamKeyLabel->setText(text);