diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index b53086a3f..045d45fd6 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -4503,7 +4503,15 @@ void GUI_App::on_http_error(wxCommandEvent &evt) m_show_error_msgdlg = false; 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 diff --git a/src/slic3r/Utils/Http.hpp b/src/slic3r/Utils/Http.hpp index c7f7ac2cd..5a6cabcc2 100644 --- a/src/slic3r/Utils/Http.hpp +++ b/src/slic3r/Utils/Http.hpp @@ -29,6 +29,7 @@ enum HttpErrorCode HttpErrorTimeout = 13, HttpErrorResourcesExhaust = 14, HttpErrorVersionLimited = 15, + HttpErrorCertRevoked = 101, }; /// Represetns a Http request