UI: Add "YouTube Control Panel" dock panel
New dock panel with integrated youtube studio live control room. This commit also modifies CI files.
This commit is contained in:
parent
807c8a9106
commit
81b588137a
14 changed files with 712 additions and 20 deletions
|
|
@ -770,6 +770,14 @@ void OBSBasicSettings::on_connectAccount_clicked()
|
|||
auth = OAuthStreamKey::Login(this, service);
|
||||
if (!!auth) {
|
||||
OnAuthConnected();
|
||||
#ifdef YOUTUBE_ENABLED
|
||||
if (IsYouTubeService(service)) {
|
||||
if (!main->GetYouTubeAppDock()) {
|
||||
main->NewYouTubeAppDock();
|
||||
}
|
||||
main->GetYouTubeAppDock()->AccountConnected();
|
||||
}
|
||||
#endif
|
||||
|
||||
ui->useStreamKeyAdv->setVisible(false);
|
||||
}
|
||||
|
|
@ -812,6 +820,16 @@ void OBSBasicSettings::on_disconnectAccount_clicked()
|
|||
|
||||
ui->connectedAccountLabel->setVisible(false);
|
||||
ui->connectedAccountText->setVisible(false);
|
||||
|
||||
#ifdef YOUTUBE_ENABLED
|
||||
if (IsYouTubeService(service)) {
|
||||
if (!main->GetYouTubeAppDock()) {
|
||||
main->NewYouTubeAppDock();
|
||||
}
|
||||
main->GetYouTubeAppDock()->AccountDisconnected();
|
||||
main->GetYouTubeAppDock()->Update();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void OBSBasicSettings::on_useStreamKey_clicked()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue