FIX: create printer preset dialog issue

Jira: 4890 4886 4880

Change-Id: If3bc20cf8f8c80d49cf6baf70ed9892710fc0c0c
Signed-off-by: maosheng.wei <maosheng.wei@bambulab.com>
This commit is contained in:
maosheng.wei
2023-10-23 21:06:09 +08:00
committed by Lane.Wei
parent 1d08d427ac
commit 7aa857bf0f
3 changed files with 27 additions and 14 deletions

View File

@@ -4450,6 +4450,7 @@ void GUI_App::reload_settings()
if (preset_bundle && m_agent) {
std::map<std::string, std::map<std::string, std::string>> user_presets;
m_agent->get_user_presets(&user_presets);
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << __LINE__ << " cloud user preset number is: " << user_presets.size();
preset_bundle->load_user_presets(*app_config, user_presets, ForwardCompatibilitySubstitutionRule::Enable);
preset_bundle->save_user_presets(*app_config, get_delete_cache_presets());
mainframe->update_side_preset_ui();