UI: Check selected broadcast when re-opening YT dialog

This commit is contained in:
derrod
2021-09-12 19:58:01 +02:00
parent 2535414923
commit 136ff7b8a3
3 changed files with 15 additions and 0 deletions
+9
View File
@@ -220,6 +220,9 @@ OBSYoutubeActions::OBSYoutubeActions(QWidget *parent, Auth *auth,
});
ui->scrollAreaWidgetContents->layout()->addWidget(
label);
if (selectedBroadcast == broadcast)
label->clicked();
});
workerThread->start();
@@ -229,6 +232,12 @@ OBSYoutubeActions::OBSYoutubeActions(QWidget *parent, Auth *auth,
if (rememberSettings)
LoadSettings();
// Switch to events page and select readied broadcast once loaded
if (broadcastReady) {
ui->tabWidget->setCurrentIndex(1);
selectedBroadcast = apiYouTube->GetBroadcastId();
}
#ifdef __APPLE__
// MacOS theming issues
this->resize(this->width() + 200, this->height() + 120);