From ba75dd6a704ecc8afeb853aa4c54d2140f52d325 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Wed, 10 Jan 2018 22:13:01 -0800 Subject: [PATCH] UI: Disable Youtube bandwidth test (for now) Due to reports that the bandwidth test is randomly causing community strikes on Youtube (likely due to bad automatic detection), the bandwidth test will be disabled for Youtube until the Youtube API is implemented. --- UI/window-basic-auto-config.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/UI/window-basic-auto-config.cpp b/UI/window-basic-auto-config.cpp index a2bc77ba3..43e4c9ae2 100644 --- a/UI/window-basic-auto-config.cpp +++ b/UI/window-basic-auto-config.cpp @@ -416,6 +416,7 @@ void AutoConfigStreamPage::UpdateKeyLink() { bool custom = ui->streamType->currentIndex() == 1; QString serviceName = ui->service->currentText(); + bool isYoutube = false; if (custom) serviceName = ""; @@ -433,6 +434,15 @@ void AutoConfigStreamPage::UpdateKeyLink() text += "\">"; text += QTStr("Basic.AutoConfig.StreamPage.StreamKey.LinkToSite"); text += ""; + + isYoutube = true; + } + + if (isYoutube) { + ui->doBandwidthTest->setChecked(false); + ui->doBandwidthTest->setEnabled(false); + } else { + ui->doBandwidthTest->setEnabled(true); } ui->streamKeyLabel->setText(text);