mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-06-30 08:33:32 +00:00
UI: Create/Delete YouTube Dock when switching profiles
This commit is contained in:
parent
3ff7cd5625
commit
eb89f7c3ab
|
@ -317,6 +317,10 @@ bool OBSBasic::CreateProfile(const std::string &newName, bool create_new,
|
|||
if (create_new) {
|
||||
auth.reset();
|
||||
DestroyPanelCookieManager();
|
||||
#ifdef YOUTUBE_ENABLED
|
||||
if (youtubeAppDock)
|
||||
DeleteYouTubeAppDock();
|
||||
#endif
|
||||
} else if (!rename) {
|
||||
DuplicateCurrentCookieProfile(config);
|
||||
}
|
||||
|
@ -782,6 +786,10 @@ void OBSBasic::ChangeProfile()
|
|||
Auth::Save();
|
||||
auth.reset();
|
||||
DestroyPanelCookieManager();
|
||||
#ifdef YOUTUBE_ENABLED
|
||||
if (youtubeAppDock)
|
||||
DeleteYouTubeAppDock();
|
||||
#endif
|
||||
|
||||
config.Swap(basicConfig);
|
||||
InitBasicConfigDefaults();
|
||||
|
@ -793,6 +801,10 @@ void OBSBasic::ChangeProfile()
|
|||
UpdateVolumeControlsDecayRate();
|
||||
|
||||
Auth::Load();
|
||||
#ifdef YOUTUBE_ENABLED
|
||||
if (YouTubeAppDock::IsYTServiceSelected() && !youtubeAppDock)
|
||||
NewYouTubeAppDock();
|
||||
#endif
|
||||
|
||||
CheckForSimpleModeX264Fallback();
|
||||
|
||||
|
|
Loading…
Reference in a new issue