From 930432e6a3ec24dd740ad74c4b99e8f019d2f235 Mon Sep 17 00:00:00 2001 From: David Kocik Date: Wed, 5 Feb 2020 11:38:45 +0100 Subject: [PATCH] updating preset bundle bug fix: if forced update - does not check snapshots --- src/slic3r/Utils/PresetUpdater.cpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/slic3r/Utils/PresetUpdater.cpp b/src/slic3r/Utils/PresetUpdater.cpp index 3172a0682..4e33e9d6b 100644 --- a/src/slic3r/Utils/PresetUpdater.cpp +++ b/src/slic3r/Utils/PresetUpdater.cpp @@ -538,13 +538,16 @@ Updates PresetUpdater::priv::get_config_updates(const Semver &old_slic3r_version } // Check if the update is already present in a snapshot - const auto recommended_snap = SnapshotDB::singleton().snapshot_with_vendor_preset(vp.name, recommended->config_version); - if (recommended_snap != SnapshotDB::singleton().end()) { - BOOST_LOG_TRIVIAL(info) << boost::format("Bundle update %1% %2% already found in snapshot %3%, skipping...") - % vp.name - % recommended->config_version.to_string() - % recommended_snap->id; - continue; + if(!current_not_supported) + { + const auto recommended_snap = SnapshotDB::singleton().snapshot_with_vendor_preset(vp.name, recommended->config_version); + if (recommended_snap != SnapshotDB::singleton().end()) { + BOOST_LOG_TRIVIAL(info) << boost::format("Bundle update %1% %2% already found in snapshot %3%, skipping...") + % vp.name + % recommended->config_version.to_string() + % recommended_snap->id; + continue; + } } updates.updates.emplace_back(std::move(new_update));