From 3f94e72cae8e799e25b623e0c0924d7cf813fc5a Mon Sep 17 00:00:00 2001 From: Stone Li Date: Thu, 19 Dec 2024 14:46:41 +0800 Subject: [PATCH] ENH: add more tips dialog JIRA: STUDIO-7801 Change-Id: I672082d97c5afa144f704959c0c56d70fddd3a6a Signed-off-by: Stone Li --- src/slic3r/GUI/GUI_App.cpp | 27 +-------------------------- src/slic3r/Utils/bambu_networking.hpp | 2 +- 2 files changed, 2 insertions(+), 27 deletions(-) diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index 5711ffd60..349bfaa0c 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -4517,15 +4517,6 @@ void GUI_App::on_http_error(wxCommandEvent &evt) return; } } - else if (status == 400 && code == HttpErrorCertRevoked) { - if (!m_show_error_msgdlg) { - MessageDialog msg_dlg(nullptr, _L("Your software certificate has been revoked, please update Bambu Studio software."), "", wxAPPLY | wxOK); - m_show_error_msgdlg = true; - auto modal_result = msg_dlg.ShowModal(); - m_show_error_msgdlg = false; - return; - } - } // request login if (status == 401) { @@ -4899,28 +4890,12 @@ void GUI_App::process_network_msg(std::string dev_id, std::string msg) else if (msg == "cert_revoked") { BOOST_LOG_TRIVIAL(info) << "process_network_msg, cert_revoked"; if (!m_show_error_msgdlg) { - MessageDialog msg_dlg(nullptr, _L("The certificate is no longer valid and the printing functions are unavailable. If you need printing. Please visit the official website at https://bambulab.com/ to download and update."), "", wxAPPLY | wxOK); + MessageDialog msg_dlg(nullptr, _L("The certificate has been revoked. Please check the time settings or update Bambu Studio and try again."), "", wxAPPLY | wxOK); m_show_error_msgdlg = true; auto modal_result = msg_dlg.ShowModal(); m_show_error_msgdlg = false; } } - else if (msg == "update_firmware_studio") { - BOOST_LOG_TRIVIAL(info) << "process_network_msg, firmware internal error"; - if (!m_show_error_msgdlg) { - MessageDialog msg_dlg(nullptr, _L("Internal error. Please try upgrading the firmware and Studio version. If the issue persists, contact customer support."), "", wxAPPLY | wxOK); - m_show_error_msgdlg = true; - auto modal_result = msg_dlg.ShowModal(); - m_show_error_msgdlg = false; - } - } - else if (msg == "unsigned_studio") { - BOOST_LOG_TRIVIAL(info) << "process_network_msg, unsigned_studio"; - MessageDialog msg_dlg(nullptr, _L("Your software is not signed, and some printing functions have been restricted. Please use the officially signed software version."), "", wxAPPLY | wxOK); - m_show_error_msgdlg = true; - auto modal_result = msg_dlg.ShowModal(); - m_show_error_msgdlg = false; - } } } diff --git a/src/slic3r/Utils/bambu_networking.hpp b/src/slic3r/Utils/bambu_networking.hpp index 248a14167..2ad5337e1 100644 --- a/src/slic3r/Utils/bambu_networking.hpp +++ b/src/slic3r/Utils/bambu_networking.hpp @@ -79,7 +79,7 @@ namespace BBL { #define BAMBU_NETWORK_ERR_PRINT_SP_PATCH_PROJECT_FAILED -3110 //failed to patch project #define BAMBU_NETWORK_ERR_PRINT_SP_POST_TASK_FAILED -3120 //failed to post task #define BAMBU_NETWORK_ERR_PRINT_SP_WAIT_PRINTER_FAILED -3130 //failed to wait the ack from printer -#define BAMBU_NETOWRK_ERR_PRINT_SP_ENC_FLAG_NOT_READY -3140 //enc parse not ready +#define BAMBU_NETOWRK_ERR_PRINT_SP_ENC_FLAG_NOT_READY -3140 //failed to get flag info //start_local_print error #define BAMBU_NETWORK_ERR_PRINT_LP_FILE_OVER_SIZE -4010 //the size of the uploaded file cannot exceed 1 GB