ENH: add more tips dialog
JIRA: STUDIO-7801 Change-Id: I672082d97c5afa144f704959c0c56d70fddd3a6a Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
parent
6aacef93af
commit
3f94e72cae
|
@ -4517,15 +4517,6 @@ void GUI_App::on_http_error(wxCommandEvent &evt)
|
||||||
return;
|
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
|
// request login
|
||||||
if (status == 401) {
|
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") {
|
else if (msg == "cert_revoked") {
|
||||||
BOOST_LOG_TRIVIAL(info) << "process_network_msg, cert_revoked";
|
BOOST_LOG_TRIVIAL(info) << "process_network_msg, cert_revoked";
|
||||||
if (!m_show_error_msgdlg) {
|
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;
|
m_show_error_msgdlg = true;
|
||||||
auto modal_result = msg_dlg.ShowModal();
|
auto modal_result = msg_dlg.ShowModal();
|
||||||
m_show_error_msgdlg = false;
|
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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_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_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_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
|
//start_local_print error
|
||||||
#define BAMBU_NETWORK_ERR_PRINT_LP_FILE_OVER_SIZE -4010 //the size of the uploaded file cannot exceed 1 GB
|
#define BAMBU_NETWORK_ERR_PRINT_LP_FILE_OVER_SIZE -4010 //the size of the uploaded file cannot exceed 1 GB
|
||||||
|
|
Loading…
Reference in New Issue