feature update web recourse on sync.

This commit is contained in:
alves
2026-01-19 11:11:01 +08:00
parent d6f2972429
commit 101929e636
2 changed files with 15 additions and 7 deletions

View File

@@ -963,7 +963,7 @@ void GUI_App::post_init()
std::string language = GUI::into_u8(current_language_code());
std::string network_ver = Slic3r::NetworkAgent::get_version();
bool sys_preset = app_config->get("sync_system_preset") == "true";
this->preset_updater->sync(http_url, language, network_ver, sys_preset ? preset_bundle : nullptr);
//this->preset_updater->sync(http_url, language, network_ver, sys_preset ? preset_bundle : nullptr);
this->preset_updater->sync_web_async(true);
this->check_new_version_sf(false, false);
@@ -4881,7 +4881,7 @@ void GUI_App::check_new_version_sf(bool show_tips, bool by_user)
GUI::wxGetApp().QueueEvent(evt);
} catch (...) {}
})
.perform();
.perform_sync();
}
void GUI_App::process_network_msg(std::string dev_id, std::string msg)
{