New upstream version 24.0.1+dfsg1
This commit is contained in:
parent
b14f9eae6d
commit
5a730d6ec3
842 changed files with 42245 additions and 33385 deletions
|
|
@ -30,7 +30,7 @@
|
|||
struct QCef;
|
||||
struct QCefCookieManager;
|
||||
|
||||
extern QCef *cef;
|
||||
extern QCef *cef;
|
||||
extern QCefCookieManager *panel_cookies;
|
||||
|
||||
static std::string GenId()
|
||||
|
|
@ -52,7 +52,8 @@ void CheckExistingCookieId()
|
|||
if (config_has_user_value(main->Config(), "Panels", "CookieId"))
|
||||
return;
|
||||
|
||||
config_set_string(main->Config(), "Panels", "CookieId", GenId().c_str());
|
||||
config_set_string(main->Config(), "Panels", "CookieId",
|
||||
GenId().c_str());
|
||||
}
|
||||
|
||||
#ifdef BROWSER_AVAILABLE
|
||||
|
|
@ -66,8 +67,8 @@ static void InitPanelCookieManager()
|
|||
CheckExistingCookieId();
|
||||
|
||||
OBSBasic *main = OBSBasic::Get();
|
||||
const char *cookie_id = config_get_string(main->Config(),
|
||||
"Panels", "CookieId");
|
||||
const char *cookie_id =
|
||||
config_get_string(main->Config(), "Panels", "CookieId");
|
||||
|
||||
std::string sub_path;
|
||||
sub_path += "obs_profile_cookies/";
|
||||
|
|
@ -102,8 +103,8 @@ void DuplicateCurrentCookieProfile(ConfigFile &config)
|
|||
#ifdef BROWSER_AVAILABLE
|
||||
if (cef) {
|
||||
OBSBasic *main = OBSBasic::Get();
|
||||
std::string cookie_id = config_get_string(main->Config(),
|
||||
"Panels", "CookieId");
|
||||
std::string cookie_id =
|
||||
config_get_string(main->Config(), "Panels", "CookieId");
|
||||
|
||||
std::string src_path;
|
||||
src_path += "obs_profile_cookies/";
|
||||
|
|
@ -136,9 +137,9 @@ void DuplicateCurrentCookieProfile(ConfigFile &config)
|
|||
}
|
||||
|
||||
config_set_string(config, "Panels", "CookieId",
|
||||
cookie_id.c_str());
|
||||
cookie_id.c_str());
|
||||
config_set_string(main->Config(), "Panels", "CookieId",
|
||||
new_id.c_str());
|
||||
new_id.c_str());
|
||||
}
|
||||
#else
|
||||
UNUSED_PARAMETER(config);
|
||||
|
|
@ -155,10 +156,9 @@ void OBSBasic::InitBrowserPanelSafeBlock()
|
|||
return;
|
||||
}
|
||||
|
||||
ExecThreadedWithoutBlocking(
|
||||
[] {cef->wait_for_browser_init();},
|
||||
QTStr("BrowserPanelInit.Title"),
|
||||
QTStr("BrowserPanelInit.Text"));
|
||||
ExecThreadedWithoutBlocking([] { cef->wait_for_browser_init(); },
|
||||
QTStr("BrowserPanelInit.Title"),
|
||||
QTStr("BrowserPanelInit.Text"));
|
||||
InitPanelCookieManager();
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue