ENH: GUI: rename win_arm64 to windows_arm

jira: no-jira
Change-Id: I01eeb96efb06ec779f1338d1207f7f6641c2bc58
This commit is contained in:
lane.wei 2025-04-10 14:46:26 +08:00
parent 28c6abe8b1
commit bbf32fd6f7
2 changed files with 3 additions and 3 deletions

View File

@ -2478,7 +2478,7 @@ std::map<std::string, std::string> GUI_App::get_extra_header()
#ifdef _M_X64
extra_headers.insert(std::make_pair("X-BBL-OS-Type", "windows"));
#else
extra_headers.insert(std::make_pair("X-BBL-OS-Type", "win_arm64"));
extra_headers.insert(std::make_pair("X-BBL-OS-Type", "windows_arm"));
#endif
#elif defined(__APPLE__)
extra_headers.insert(std::make_pair("X-BBL-OS-Type", "macos"));

View File

@ -1172,10 +1172,10 @@ void PresetUpdater::priv::sync_plugins(std::string http_url, std::string plugin_
if (GUI::wxGetApp().is_running_on_arm64()) {
//set to arm64 for plugins
std::map<std::string, std::string> current_headers = Slic3r::Http::get_extra_headers();
current_headers["X-BBL-OS-Type"] = "win_arm64";
current_headers["X-BBL-OS-Type"] = "windows_arm";
Slic3r::Http::set_extra_headers(current_headers);
BOOST_LOG_TRIVIAL(info) << boost::format("set X-BBL-OS-Type to win_arm64");
BOOST_LOG_TRIVIAL(info) << boost::format("set X-BBL-OS-Type to windows_arm");
}
#endif
try {