mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-09-28 19:43:13 +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
|
#ifdef _M_X64
|
||||||
extra_headers.insert(std::make_pair("X-BBL-OS-Type", "windows"));
|
extra_headers.insert(std::make_pair("X-BBL-OS-Type", "windows"));
|
||||||
#else
|
#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
|
#endif
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
extra_headers.insert(std::make_pair("X-BBL-OS-Type", "macos"));
|
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()) {
|
if (GUI::wxGetApp().is_running_on_arm64()) {
|
||||||
//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"] = "win_arm64";
|
current_headers["X-BBL-OS-Type"] = "windows_arm";
|
||||||
|
|
||||||
Slic3r::Http::set_extra_headers(current_headers);
|
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
|
#endif
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user