ENH: add http error msg

JIRA: STUDIO-7801

Change-Id: I0a8444f144022eaac9e6d11cfe783c39859fde60
Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
Stone Li 2024-12-24 16:20:19 +08:00 committed by lane.wei
parent c753fbe410
commit f1b1d522a7
1 changed files with 9 additions and 0 deletions

View File

@ -4517,6 +4517,15 @@ 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) {