FIX: [STUDIO-1800] enable_user_preset_folder before load preset

Change-Id: I3b877db994440359e56aa2fa13d13b1d9a98f978
This commit is contained in:
chunmao.guo 2022-12-19 17:41:27 +08:00 committed by Lane.Wei
parent 55b6bc5563
commit e32792c305

View file

@ -2330,7 +2330,11 @@ bool GUI_App::on_init_inner()
copy_network_if_available();
on_init_network();
//BBS if load user preset failed
if (app_config->get("sync_user_preset") == "true" && m_agent && m_agent->is_user_login()) {
enable_user_preset_folder(true);
}
// BBS if load user preset failed
//if (loaded_preset_result != 0) {
try {
// Enable all substitutions (in both user and system profiles), but log the substitutions in user profiles only.