feature update web resource upgrade logic for process soft.

This commit is contained in:
alves
2026-01-04 16:54:08 +08:00
parent 9399c860b5
commit 7b23bde61d

View File

@@ -756,7 +756,10 @@ 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)
return;
else {
if (currentPresetVersion >= remoteVersion){
if (!isAuto_check) { if (!isAuto_check) {
wxCommandEvent* evt = new wxCommandEvent(EVT_NO_WEB_RESOURCE_UPDATE); wxCommandEvent* evt = new wxCommandEvent(EVT_NO_WEB_RESOURCE_UPDATE);
GUI::wxGetApp().QueueEvent(evt); GUI::wxGetApp().QueueEvent(evt);
@@ -765,6 +768,8 @@ void PresetUpdater::priv::sync_update_flutter_resource(bool isAuto_check)
} }
return; return;
} }
}
} }
if (currentPresetVersion < remoteVersion) if (currentPresetVersion < remoteVersion)