mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-12 23:13:32 +00:00
feature remove not work code.
This commit is contained in:
@@ -4287,27 +4287,6 @@ std::string GUI_App::handle_web_request(std::string cmd)
|
||||
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)
|
||||
{
|
||||
if (plater_) {
|
||||
|
||||
@@ -561,7 +561,6 @@ private:
|
||||
void request_user_logout();
|
||||
int request_user_unbind(std::string dev_id);
|
||||
std::string handle_web_request(std::string cmd);
|
||||
void handle_script_message(std::string msg);
|
||||
void request_model_download(wxString url);
|
||||
void download_project(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);
|
||||
|
||||
|
||||
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->SetForegroundColour(wxColour(0x26, 0x2E, 0x30));
|
||||
|
||||
@@ -305,7 +305,6 @@ void SMUserLogin::OnScriptMessage(wxWebViewEvent &evt)
|
||||
}
|
||||
if (strCmd == "user_login") {
|
||||
j["data"]["autotest_token"] = m_AutotestToken;
|
||||
wxGetApp().handle_script_message(j.dump());
|
||||
Close();
|
||||
}
|
||||
else if (strCmd == "get_localhost_url") {
|
||||
|
||||
@@ -279,7 +279,6 @@ void ZUserLogin::OnScriptMessage(wxWebViewEvent &evt)
|
||||
}
|
||||
if (strCmd == "user_login") {
|
||||
j["data"]["autotest_token"] = m_AutotestToken;
|
||||
wxGetApp().handle_script_message(j.dump());
|
||||
Close();
|
||||
}
|
||||
else if (strCmd == "get_localhost_url") {
|
||||
|
||||
Reference in New Issue
Block a user