UI: Rework YouTube broadcast setup flow

This commit is contained in:
derrod
2021-09-12 13:45:51 +02:00
parent e2b7597fb0
commit ca3f244584
11 changed files with 271 additions and 142 deletions
+6 -1
View File
@@ -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());