Only download ARM version when not using legacy plugin

This commit is contained in:
Noisyfox
2025-05-19 10:51:55 +08:00
parent a67436ee7e
commit 9711b65736

View File

@@ -1219,7 +1219,7 @@ int GUI_App::download_plugin(std::string name, std::string package_name, Install
tmp_path += format(".%1%%2%", get_current_pid(), ".tmp");
#if defined(__WINDOWS__)
if (is_running_on_arm64()) {
if (is_running_on_arm64() && !NetworkAgent::use_legacy_network) {
//set to arm64 for plugins
std::map<std::string, std::string> current_headers = Slic3r::Http::get_extra_headers();
current_headers["X-BBL-OS-Type"] = "windows_arm";
@@ -1287,7 +1287,7 @@ int GUI_App::download_plugin(std::string name, std::string package_name, Install
}).perform_sync();
#if defined(__WINDOWS__)
if (is_running_on_arm64()) {
if (is_running_on_arm64() && !NetworkAgent::use_legacy_network) {
//set back
std::map<std::string, std::string> current_headers = Slic3r::Http::get_extra_headers();
current_headers["X-BBL-OS-Type"] = "windows";