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:
parent
c753fbe410
commit
f1b1d522a7
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue