mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-10 08:17:51 -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();
|
bool check_networking_version();
|
||||||
void cancel_networking_install();
|
void cancel_networking_install();
|
||||||
void restart_networking();
|
void restart_networking();
|
||||||
|
void check_config_updates_from_updater() { check_updates(false); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int updating_bambu_networking();
|
int updating_bambu_networking();
|
||||||
|
|
|
@ -1293,8 +1293,14 @@ void PresetUpdater::sync(std::string http_url, std::string language, std::string
|
||||||
this->p->sync_version();
|
this->p->sync_version();
|
||||||
if (p->cancel)
|
if (p->cancel)
|
||||||
return;
|
return;
|
||||||
if (!vendors.empty())
|
if (!vendors.empty()) {
|
||||||
this->p->sync_config(http_url, std::move(vendors));
|
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)
|
if (p->cancel)
|
||||||
return;
|
return;
|
||||||
this->p->sync_plugins(http_url, plugin_version);
|
this->p->sync_plugins(http_url, plugin_version);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue