From 063c69ad1e5f3834c15dcdccde6c5eb33f84b7bd Mon Sep 17 00:00:00 2001 From: Richard Stanway Date: Wed, 9 Sep 2020 00:44:08 +0200 Subject: [PATCH] UI: Don't warn about bandwidth test mode if not authed It was possible to enable the bandwidth test and disconnect your Twitch account, resulting in a confusing prompt about streaming in bandwidth test mode when trying to start a stream. --- UI/window-basic-main.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index 4ce055548..c85ef15a9 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -6275,9 +6275,14 @@ void OBSBasic::on_streamButton_clicked() bool confirm = config_get_bool(GetGlobalConfig(), "BasicWindow", "WarnBeforeStartingStream"); - obs_data_t *settings = obs_service_get_settings(service); - bool bwtest = obs_data_get_bool(settings, "bwtest"); - obs_data_release(settings); + bool bwtest = false; + + if (this->auth) { + obs_data_t *settings = + obs_service_get_settings(service); + bwtest = obs_data_get_bool(settings, "bwtest"); + obs_data_release(settings); + } if (bwtest && isVisible()) { QMessageBox::StandardButton button =