From b79e6d219fd45dc800fec8186eb254fcccc569f6 Mon Sep 17 00:00:00 2001 From: Lain Date: Fri, 11 Aug 2023 15:56:08 -0700 Subject: [PATCH] UI: Fix YouTube not saving stream key in auto config Commit 85f9a8661b did not take into account whether YouTube was using a stream key or not, it would prevent the auto-configuration dialog from being able to save a YouTube stream key if the user opted to enter in a stream key instead of connecting their YouTube account. This simply fixes that by checking to see whether or not the user fully connected their account or not. Fixes obsproject/obs-studio#6406 --- UI/window-basic-auto-config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/window-basic-auto-config.cpp b/UI/window-basic-auto-config.cpp index 1a7a649a7..9cccf0ebd 100644 --- a/UI/window-basic-auto-config.cpp +++ b/UI/window-basic-auto-config.cpp @@ -1094,7 +1094,7 @@ void AutoConfig::SaveStreamSettings() obs_data_set_string(settings, "service", serviceName.c_str()); obs_data_set_string(settings, "server", server.c_str()); #ifdef YOUTUBE_ENABLED - if (!IsYouTubeService(serviceName)) + if (!streamPage->auth || !IsYouTubeService(serviceName)) obs_data_set_string(settings, "key", key.c_str()); #else obs_data_set_string(settings, "key", key.c_str());