UI: Set browser dock title in constructor

Works around a bug in Qt where setWindowTitle called on a native window
that hasn't been initialised yet causes the title data to be lost,
resulting in the window's title never being set.
This commit is contained in:
Matt Gajownik 2023-08-10 18:31:19 +10:00 • committed by Ryan Foster
commit 7d9f8e7cac
10 changed files with 27 additions and 20 deletions

View file

@ -2199,7 +2199,7 @@ void OBSBasic::OBSInit()
#ifdef YOUTUBE_ENABLED
/* setup YouTube app dock */
if (YouTubeAppDock::IsYTServiceSelected())
youtubeAppDock = new YouTubeAppDock();
NewYouTubeAppDock();
#endif
const char *dockStateStr = config_get_string(
@ -8517,7 +8517,7 @@ void OBSBasic::NewYouTubeAppDock()
if (youtubeAppDock)
RemoveDockWidget(youtubeAppDock->objectName());
youtubeAppDock = new YouTubeAppDock();
youtubeAppDock = new YouTubeAppDock("YouTube Live Control Panel");
}
void OBSBasic::DeleteYouTubeAppDock()