mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
Only download ARM version when not using legacy plugin
This commit is contained in:
@@ -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");
|
tmp_path += format(".%1%%2%", get_current_pid(), ".tmp");
|
||||||
|
|
||||||
#if defined(__WINDOWS__)
|
#if defined(__WINDOWS__)
|
||||||
if (is_running_on_arm64()) {
|
if (is_running_on_arm64() && !NetworkAgent::use_legacy_network) {
|
||||||
//set to arm64 for plugins
|
//set to arm64 for plugins
|
||||||
std::map<std::string, std::string> current_headers = Slic3r::Http::get_extra_headers();
|
std::map<std::string, std::string> current_headers = Slic3r::Http::get_extra_headers();
|
||||||
current_headers["X-BBL-OS-Type"] = "windows_arm";
|
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();
|
}).perform_sync();
|
||||||
|
|
||||||
#if defined(__WINDOWS__)
|
#if defined(__WINDOWS__)
|
||||||
if (is_running_on_arm64()) {
|
if (is_running_on_arm64() && !NetworkAgent::use_legacy_network) {
|
||||||
//set back
|
//set back
|
||||||
std::map<std::string, std::string> current_headers = Slic3r::Http::get_extra_headers();
|
std::map<std::string, std::string> current_headers = Slic3r::Http::get_extra_headers();
|
||||||
current_headers["X-BBL-OS-Type"] = "windows";
|
current_headers["X-BBL-OS-Type"] = "windows";
|
||||||
|
|||||||
Reference in New Issue
Block a user