From 6c22b0c86f4361c2d822189cb296fc5208613aa6 Mon Sep 17 00:00:00 2001 From: Noisyfox Date: Mon, 19 May 2025 10:54:38 +0800 Subject: [PATCH] Update plugin version in `PresetUpdater` --- src/slic3r/Utils/PresetUpdater.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/slic3r/Utils/PresetUpdater.cpp b/src/slic3r/Utils/PresetUpdater.cpp index 7b77c7451c..0af6cd459f 100644 --- a/src/slic3r/Utils/PresetUpdater.cpp +++ b/src/slic3r/Utils/PresetUpdater.cpp @@ -849,7 +849,7 @@ void PresetUpdater::priv::sync_plugins(std::string http_url, std::string plugin_ BOOST_LOG_TRIVIAL(info) << "non need to sync plugins for there is no plugins currently."; return; } - std::string curr_version = SLIC3R_VERSION; + std::string curr_version = NetworkAgent::use_legacy_network ? BAMBU_NETWORK_AGENT_VERSION_LEGACY : BAMBU_NETWORK_AGENT_VERSION; std::string using_version = curr_version.substr(0, 9) + "00"; std::string cached_version; @@ -944,7 +944,7 @@ void PresetUpdater::priv::sync_plugins(std::string http_url, std::string plugin_ } #if defined(__WINDOWS__) - if (GUI::wxGetApp().is_running_on_arm64()) { + if (GUI::wxGetApp().is_running_on_arm64() && !NetworkAgent::use_legacy_network) { //set to arm64 for plugins std::map current_headers = Slic3r::Http::get_extra_headers(); current_headers["X-BBL-OS-Type"] = "windows_arm"; @@ -964,7 +964,7 @@ void PresetUpdater::priv::sync_plugins(std::string http_url, std::string plugin_ BOOST_LOG_TRIVIAL(warning) << format("[Orca Updater] sync_plugins: %1%", e.what()); } #if defined(__WINDOWS__) - if (GUI::wxGetApp().is_running_on_arm64()) { + if (GUI::wxGetApp().is_running_on_arm64() && !NetworkAgent::use_legacy_network) { //set back std::map current_headers = Slic3r::Http::get_extra_headers(); current_headers["X-BBL-OS-Type"] = "windows";