mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-09-28 18:33:19 +08:00
ENH: GUI: rename win_arm64 to windows_arm
jira: no-jira Change-Id: I01eeb96efb06ec779f1338d1207f7f6641c2bc58
This commit is contained in:
parent
28c6abe8b1
commit
bbf32fd6f7
@ -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"));
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user