mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
UI: Check selected broadcast when re-opening YT dialog
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user