mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-19 09:41:32 +08:00
UI: Rework YouTube broadcast setup flow
This commit is contained in:
@@ -243,8 +243,12 @@ void OBSBasicSettings::SaveStream1Settings()
|
||||
main->SetService(newService);
|
||||
main->SaveService();
|
||||
main->auth = auth;
|
||||
if (!!main->auth)
|
||||
if (!!main->auth) {
|
||||
main->auth->LoadUI();
|
||||
main->SetBroadcastFlowEnabled(main->auth->broadcastFlow());
|
||||
} else {
|
||||
main->SetBroadcastFlowEnabled(false);
|
||||
}
|
||||
|
||||
SaveCheckBox(ui->ignoreRecommended, "Stream1", "IgnoreRecommended");
|
||||
}
|
||||
@@ -667,6 +671,7 @@ void OBSBasicSettings::on_disconnectAccount_clicked()
|
||||
|
||||
main->auth.reset();
|
||||
auth.reset();
|
||||
main->SetBroadcastFlowEnabled(false);
|
||||
|
||||
std::string service = QT_TO_UTF8(ui->service->currentText());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user