mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-02 07:42:14 +00:00
fix: wrong version checking
This commit is contained in:
@@ -1094,10 +1094,9 @@ void PresetUpdater::priv::check_installed_vendor_profiles() const
|
|||||||
Semver resource_ver = get_version_from_json(file_path);
|
Semver resource_ver = get_version_from_json(file_path);
|
||||||
Semver vendor_ver = get_version_from_json(path_in_vendor.string());
|
Semver vendor_ver = get_version_from_json(path_in_vendor.string());
|
||||||
|
|
||||||
bool version_match = ((resource_ver.maj() == vendor_ver.maj()) && (resource_ver.min() == vendor_ver.min()));
|
if (vendor_ver < resource_ver) {
|
||||||
|
BOOST_LOG_TRIVIAL(info) << "[Orca Updater]:found vendor " << vendor_name << " newer version "
|
||||||
if (!version_match || (vendor_ver < resource_ver)) {
|
<< resource_ver.to_string() << " from resource, old version " << vendor_ver.to_string();
|
||||||
BOOST_LOG_TRIVIAL(info) << "[Orca Updater]:found vendor "<<vendor_name<<" newer version "<<resource_ver.to_string() <<" from resource, old version "<<vendor_ver.to_string();
|
|
||||||
bundles.insert(vendor_name);
|
bundles.insert(vendor_name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user