mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
NEW: Christmas Cabin
Change-Id: I5b8585df171dc3be85e099b1992cef1bbd3d799c
This commit is contained in:
parent
e9045c2f4b
commit
550be104ee
11 changed files with 1662 additions and 0 deletions
|
@ -3504,7 +3504,17 @@ std::string GUI_App::handle_web_request(std::string cmd)
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (command_str.compare("homepage_open_ccabin") == 0) {
|
||||
if (root.get_child_optional("data") != boost::none) {
|
||||
pt::ptree data_node = root.get_child("data");
|
||||
boost::optional<std::string> path = data_node.get_optional<std::string>("file");
|
||||
if (path.has_value()) {
|
||||
std::string Fullpath = resources_dir() + "/web/homepage/model/" + path.value();
|
||||
|
||||
this->request_open_project(Fullpath);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (...) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue