mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-12 11:37:42 +00:00
feature update web resource upgrade logic for process soft.
This commit is contained in:
@@ -756,14 +756,19 @@ void PresetUpdater::priv::sync_update_flutter_resource(bool isAuto_check)
|
|||||||
if (fs::exists(localProfilesjson)) {
|
if (fs::exists(localProfilesjson)) {
|
||||||
Semver localOtaVersion = get_version_from_json(localProfilesjson.string());
|
Semver localOtaVersion = get_version_from_json(localProfilesjson.string());
|
||||||
|
|
||||||
if (localOtaVersion >= remoteVersion) {
|
if (localOtaVersion >= remoteVersion)
|
||||||
if (!isAuto_check) {
|
|
||||||
wxCommandEvent* evt = new wxCommandEvent(EVT_NO_WEB_RESOURCE_UPDATE);
|
|
||||||
GUI::wxGetApp().QueueEvent(evt);
|
|
||||||
|
|
||||||
BOOST_LOG_TRIVIAL(info) << format("use check the web update.");
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
|
else {
|
||||||
|
if (currentPresetVersion >= remoteVersion){
|
||||||
|
if (!isAuto_check) {
|
||||||
|
wxCommandEvent* evt = new wxCommandEvent(EVT_NO_WEB_RESOURCE_UPDATE);
|
||||||
|
GUI::wxGetApp().QueueEvent(evt);
|
||||||
|
|
||||||
|
BOOST_LOG_TRIVIAL(info) << format("use check the web update.");
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user