NEW: Christmas Cabin

Change-Id: I5b8585df171dc3be85e099b1992cef1bbd3d799c
This commit is contained in:
zorro.zhang authored and Lane.Wei committed 2022-12-15 04:38:15 -05:00
1 parent e9045c2f4b
commit 550be104ee
11 files changed
+1662

No files matched your search

+10
View File
@@ -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 (...) {