Procházet zdrojové kódy

UI: Add links for Facebook stream key

Richard Stanway před 6 roky
rodič
revize
1684b9bddb

+ 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);