FIX: [STUDIO-3891] check config update after sync

Change-Id: I82e409f0d3649a371cbe0f8ee9a5f9ad1a267fc8
(cherry picked from commit a5bb7694cf874f125ee9d1169d20710fd4a27443)
This commit is contained in:
chunmao.guo 2023-08-08 14:05:50 +08:00 committed by Lane.Wei
parent 2b1712bb9d
commit f66cb2bb69
2 changed files with 8 additions and 1 deletions

View file

@ -619,6 +619,7 @@ public:
bool check_networking_version();
void cancel_networking_install();
void restart_networking();
void check_config_updates_from_updater() { check_updates(false); }
private:
int updating_bambu_networking();

View file

@ -1293,10 +1293,16 @@ void PresetUpdater::sync(std::string http_url, std::string language, std::string
this->p->sync_version();
if (p->cancel)
return;
if (!vendors.empty())
if (!vendors.empty()) {
this->p->sync_config(http_url, std::move(vendors));
if (p->cancel)
return;
GUI::wxGetApp().CallAfter([] {
GUI::wxGetApp().check_config_updates_from_updater();
});
}
if (p->cancel)
return;
this->p->sync_plugins(http_url, plugin_version);
//if (p->cancel)
// return;