mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
remove staff_pick_switch
This commit is contained in:
parent
70c5178e50
commit
4fe80bcbc5
4 changed files with 71 additions and 71 deletions
|
@ -1736,9 +1736,9 @@ void GUI_App::restart_networking()
|
|||
if (app_config->get("sync_user_preset") == "true") {
|
||||
start_sync_user_preset();
|
||||
}
|
||||
if (mainframe && this->app_config->get("staff_pick_switch") == "true") {
|
||||
if (mainframe->m_webview) { mainframe->m_webview->SendDesignStaffpick(has_model_mall()); }
|
||||
}
|
||||
// if (mainframe && this->app_config->get("staff_pick_switch") == "true") {
|
||||
// if (mainframe->m_webview) { mainframe->m_webview->SendDesignStaffpick(has_model_mall()); }
|
||||
// }
|
||||
}
|
||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__<< boost::format(" exit, m_agent=%1%")%m_agent;
|
||||
}
|
||||
|
@ -2989,10 +2989,10 @@ void GUI_App::update_label_colours_from_appconfig()
|
|||
|
||||
void GUI_App::update_publish_status()
|
||||
{
|
||||
mainframe->show_publish_button(has_model_mall());
|
||||
if (app_config->get("staff_pick_switch") == "true") {
|
||||
mainframe->m_webview->SendDesignStaffpick(has_model_mall());
|
||||
}
|
||||
// mainframe->show_publish_button(has_model_mall());
|
||||
// if (app_config->get("staff_pick_switch") == "true") {
|
||||
// mainframe->m_webview->SendDesignStaffpick(has_model_mall());
|
||||
// }
|
||||
}
|
||||
|
||||
bool GUI_App::has_model_mall()
|
||||
|
@ -3818,22 +3818,22 @@ std::string GUI_App::handle_web_request(std::string cmd)
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (command_str.compare("modelmall_model_advise_get") == 0) {
|
||||
if (mainframe && this->app_config->get("staff_pick_switch") == "true") {
|
||||
if (mainframe->m_webview) {
|
||||
mainframe->m_webview->SendDesignStaffpick(has_model_mall());
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (command_str.compare("modelmall_model_open") == 0) {
|
||||
if (root.get_child_optional("data") != boost::none) {
|
||||
pt::ptree data_node = root.get_child("data");
|
||||
boost::optional<std::string> id = data_node.get_optional<std::string>("id");
|
||||
if (id.has_value() && mainframe->m_webview) {
|
||||
mainframe->m_webview->OpenModelDetail(id.value(), m_agent);
|
||||
}
|
||||
}
|
||||
}
|
||||
// else if (command_str.compare("modelmall_model_advise_get") == 0) {
|
||||
// if (mainframe && this->app_config->get("staff_pick_switch") == "true") {
|
||||
// if (mainframe->m_webview) {
|
||||
// mainframe->m_webview->SendDesignStaffpick(has_model_mall());
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// else if (command_str.compare("modelmall_model_open") == 0) {
|
||||
// if (root.get_child_optional("data") != boost::none) {
|
||||
// pt::ptree data_node = root.get_child("data");
|
||||
// boost::optional<std::string> id = data_node.get_optional<std::string>("id");
|
||||
// if (id.has_value() && mainframe->m_webview) {
|
||||
// mainframe->m_webview->OpenModelDetail(id.value(), m_agent);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
else if (command_str.compare("homepage_open_recentfile") == 0) {
|
||||
if (root.get_child_optional("data") != boost::none) {
|
||||
pt::ptree data_node = root.get_child("data");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue