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

Change-Id: I82e409f0d3649a371cbe0f8ee9a5f9ad1a267fc8
This commit is contained in:
chunmao.guo 2023-08-08 14:05:50 +08:00 committed by Lane.Wei
parent ed82262ca8
commit 163d279851
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

@ -1286,8 +1286,14 @@ 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);