mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-03 00:02:14 +00:00
feature remove not work code.
This commit is contained in:
@@ -4295,27 +4295,6 @@ std::string GUI_App::handle_web_request(std::string cmd)
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
void GUI_App::handle_script_message(std::string msg)
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
json j = json::parse(msg);
|
|
||||||
if (j.contains("command")) {
|
|
||||||
wxString cmd = j["command"];
|
|
||||||
if (cmd == "user_login") {
|
|
||||||
if (m_agent) {
|
|
||||||
m_agent->change_user(j.dump());
|
|
||||||
if (m_agent->is_user_login()) {
|
|
||||||
request_user_login(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (...) {
|
|
||||||
;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void GUI_App::request_model_download(wxString url)
|
void GUI_App::request_model_download(wxString url)
|
||||||
{
|
{
|
||||||
if (plater_) {
|
if (plater_) {
|
||||||
|
|||||||
@@ -561,7 +561,6 @@ private:
|
|||||||
void request_user_logout();
|
void request_user_logout();
|
||||||
int request_user_unbind(std::string dev_id);
|
int request_user_unbind(std::string dev_id);
|
||||||
std::string handle_web_request(std::string cmd);
|
std::string handle_web_request(std::string cmd);
|
||||||
void handle_script_message(std::string msg);
|
|
||||||
void request_model_download(wxString url);
|
void request_model_download(wxString url);
|
||||||
void download_project(std::string project_id);
|
void download_project(std::string project_id);
|
||||||
void request_project_download(std::string project_id);
|
void request_project_download(std::string project_id);
|
||||||
|
|||||||
@@ -121,7 +121,6 @@ MsgUpdateConfig::MsgUpdateConfig(const std::vector<Update> &updates, bool force_
|
|||||||
|
|
||||||
wxBoxSizer *m_sizer_right = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer *m_sizer_right = new wxBoxSizer(wxVERTICAL);
|
||||||
|
|
||||||
|
|
||||||
auto m_text_up_info = new wxStaticText(this, wxID_ANY, _L("A new configuration package is available. Do you want to install it?"), wxDefaultPosition, wxDefaultSize, 0);
|
auto m_text_up_info = new wxStaticText(this, wxID_ANY, _L("A new configuration package is available. Do you want to install it?"), wxDefaultPosition, wxDefaultSize, 0);
|
||||||
m_text_up_info->SetFont(::Label::Head_14);
|
m_text_up_info->SetFont(::Label::Head_14);
|
||||||
m_text_up_info->SetForegroundColour(wxColour(0x26, 0x2E, 0x30));
|
m_text_up_info->SetForegroundColour(wxColour(0x26, 0x2E, 0x30));
|
||||||
|
|||||||
@@ -305,7 +305,6 @@ void SMUserLogin::OnScriptMessage(wxWebViewEvent &evt)
|
|||||||
}
|
}
|
||||||
if (strCmd == "user_login") {
|
if (strCmd == "user_login") {
|
||||||
j["data"]["autotest_token"] = m_AutotestToken;
|
j["data"]["autotest_token"] = m_AutotestToken;
|
||||||
wxGetApp().handle_script_message(j.dump());
|
|
||||||
Close();
|
Close();
|
||||||
}
|
}
|
||||||
else if (strCmd == "get_localhost_url") {
|
else if (strCmd == "get_localhost_url") {
|
||||||
|
|||||||
@@ -279,7 +279,6 @@ void ZUserLogin::OnScriptMessage(wxWebViewEvent &evt)
|
|||||||
}
|
}
|
||||||
if (strCmd == "user_login") {
|
if (strCmd == "user_login") {
|
||||||
j["data"]["autotest_token"] = m_AutotestToken;
|
j["data"]["autotest_token"] = m_AutotestToken;
|
||||||
wxGetApp().handle_script_message(j.dump());
|
|
||||||
Close();
|
Close();
|
||||||
}
|
}
|
||||||
else if (strCmd == "get_localhost_url") {
|
else if (strCmd == "get_localhost_url") {
|
||||||
|
|||||||
Reference in New Issue
Block a user