mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-13 22:45:55 +08:00
FIX: Online and Makerlab not show on MAC
JIRA: none Change-Id: I399e19ab27cdaab08c3ba090fc6a5844cfcb8718
This commit is contained in:
parent
3a69484872
commit
c054394177
@ -4039,6 +4039,7 @@ std::string GUI_App::handle_web_request(std::string cmd)
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
//BBS use nlohmann json format
|
//BBS use nlohmann json format
|
||||||
|
BOOST_LOG_TRIVIAL(info) << "handle_web_request: " << cmd;
|
||||||
std::stringstream ss(cmd), oss;
|
std::stringstream ss(cmd), oss;
|
||||||
pt::ptree root, response;
|
pt::ptree root, response;
|
||||||
pt::read_json(ss, root);
|
pt::read_json(ss, root);
|
||||||
@ -4049,6 +4050,7 @@ std::string GUI_App::handle_web_request(std::string cmd)
|
|||||||
boost::optional<std::string> command = root.get_optional<std::string>("command");
|
boost::optional<std::string> command = root.get_optional<std::string>("command");
|
||||||
if (command.has_value()) {
|
if (command.has_value()) {
|
||||||
std::string command_str = command.value();
|
std::string command_str = command.value();
|
||||||
|
BOOST_LOG_TRIVIAL(info) << "handle_web_request: " << command_str;
|
||||||
if (command_str.compare("request_project_download") == 0) {
|
if (command_str.compare("request_project_download") == 0) {
|
||||||
if (root.get_child_optional("data") != boost::none) {
|
if (root.get_child_optional("data") != boost::none) {
|
||||||
pt::ptree data_node = root.get_child("data");
|
pt::ptree data_node = root.get_child("data");
|
||||||
|
@ -279,6 +279,8 @@ WebViewPanel::WebViewPanel(wxWindow *parent)
|
|||||||
SendDesignStaffpick(true);
|
SendDesignStaffpick(true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
SwitchWebContent("home");
|
||||||
}
|
}
|
||||||
|
|
||||||
WebViewPanel::~WebViewPanel()
|
WebViewPanel::~WebViewPanel()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user