diff --git a/src/slic3r/Utils/PresetUpdater.cpp b/src/slic3r/Utils/PresetUpdater.cpp index e1e30afda2..fab0e940d7 100644 --- a/src/slic3r/Utils/PresetUpdater.cpp +++ b/src/slic3r/Utils/PresetUpdater.cpp @@ -1653,7 +1653,7 @@ void PresetUpdater::sync_web_async() GUI::wxGetApp().CallAfter([this] { std::string zipfilepath = this->p->cache_path.string() + "/flutter_web.zip"; BOOST_LOG_TRIVIAL(debug) << "[Orca Updater] sync_web_async completed, checking updates..."; - load_lutter_web(zipfilepath); + load_lutter_web(zipfilepath, true); }); }); } @@ -1737,7 +1737,7 @@ bool PresetUpdater::version_check_enabled() const } -void PresetUpdater::load_lutter_web(const std::string& zip_file) +void PresetUpdater::load_lutter_web(const std::string& zip_file, bool serverUpdate) { boost::filesystem::path temp_path = boost::filesystem::temp_directory_path() / "orca_temp_flutter_import"; try { @@ -1854,7 +1854,7 @@ void PresetUpdater::load_lutter_web(const std::string& zip_file) } wxString message; - if (!outdated_presets.empty()) { + if (!outdated_presets.empty() && !serverUpdate) { message = _L("This web resouce could not be imported due to outdated versions.") + "\n"; for (const auto& preset : outdated_presets) { message += "• " + preset + "\n"; diff --git a/src/slic3r/Utils/PresetUpdater.hpp b/src/slic3r/Utils/PresetUpdater.hpp index 745931f96b..c1c7a49638 100644 --- a/src/slic3r/Utils/PresetUpdater.hpp +++ b/src/slic3r/Utils/PresetUpdater.hpp @@ -65,7 +65,7 @@ public: void import_flutter_web(); - void load_lutter_web(const std::string& zip_file); + void load_lutter_web(const std::string& zip_file,bool serverUpdate = false); void sync_config_async();