mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-10 00:07:52 -06:00
FIX: [STUDIO-3891] check config update after sync
Change-Id: I82e409f0d3649a371cbe0f8ee9a5f9ad1a267fc8 (cherry picked from commit a5bb7694cf874f125ee9d1169d20710fd4a27443)
This commit is contained in:
parent
2b1712bb9d
commit
f66cb2bb69
2 changed files with 8 additions and 1 deletions
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue