瀏覽代碼

UI: Restore auth reset when switching services

Fixes #5236
derrod 4 年之前
父節點
當前提交
d5f3ddabd1
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      UI/window-basic-settings-stream.cpp

+ 2 - 1
UI/window-basic-settings-stream.cpp

@@ -470,6 +470,8 @@ void OBSBasicSettings::on_service_currentIndexChanged(int)
 		ui->serverStackedWidget->setCurrentIndex(0);
 		ui->serverStackedWidget->setCurrentIndex(0);
 	}
 	}
 
 
+	auth.reset();
+
 	if (!main->auth) {
 	if (!main->auth) {
 		return;
 		return;
 	}
 	}
@@ -482,7 +484,6 @@ void OBSBasicSettings::on_service_currentIndexChanged(int)
 						IsYouTubeService(service);
 						IsYouTubeService(service);
 #endif
 #endif
 	if (service_check) {
 	if (service_check) {
-		auth.reset();
 		auth = main->auth;
 		auth = main->auth;
 		OnAuthConnected();
 		OnAuthConnected();
 	}
 	}