UI: Fix YouTubeAppDock restore dock state

This commit is contained in:
tytan652
2023-08-04 09:20:11 +02:00
committed by Lain
parent 57849bb0e7
commit 049f4454d4
3 changed files with 12 additions and 17 deletions

View File

@@ -2192,6 +2192,12 @@ void OBSBasic::OBSInit()
}
#endif
#ifdef YOUTUBE_ENABLED
/* setup YouTube app dock */
if (YouTubeAppDock::IsYTServiceSelected())
youtubeAppDock = new YouTubeAppDock();
#endif
const char *dockStateStr = config_get_string(
App()->GlobalConfig(), "BasicWindow", "DockState");
@@ -2336,12 +2342,6 @@ void OBSBasic::OBSInit()
UpdatePreviewProgramIndicators();
OnFirstLoad();
#ifdef YOUTUBE_ENABLED
/* setup YouTube app dock */
if (YouTubeAppDock::IsYTServiceSelected())
youtubeAppDock = new YouTubeAppDock();
#endif
if (!hideWindowOnStart)
activateWindow();