mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
spelling fix
This commit is contained in:
@@ -4835,12 +4835,12 @@ void GUI_App::on_http_error(wxCommandEvent &evt)
|
|||||||
BOOST_LOG_TRIVIAL(warning) << "logout: http error 401.";
|
BOOST_LOG_TRIVIAL(warning) << "logout: http error 401.";
|
||||||
this->request_user_logout(provider);
|
this->request_user_logout(provider);
|
||||||
|
|
||||||
if (!m_show_http_errpr_msgdlg) {
|
if (!m_show_http_error_msgdlg) {
|
||||||
MessageDialog msg_dlg(nullptr, _L("Login information expired. Please login again."), "", wxAPPLY | wxOK);
|
MessageDialog msg_dlg(nullptr, _L("Login information expired. Please login again."), "", wxAPPLY | wxOK);
|
||||||
m_show_http_errpr_msgdlg = true;
|
m_show_http_error_msgdlg = true;
|
||||||
auto modal_result = msg_dlg.ShowModal();
|
auto modal_result = msg_dlg.ShowModal();
|
||||||
if (modal_result == wxOK || modal_result == wxCLOSE) {
|
if (modal_result == wxOK || modal_result == wxCLOSE) {
|
||||||
m_show_http_errpr_msgdlg = false;
|
m_show_http_error_msgdlg = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4851,9 +4851,9 @@ void GUI_App::on_http_error(wxCommandEvent &evt)
|
|||||||
|
|
||||||
// Show general error notification for Orca Cloud API failures (not Bambu)
|
// Show general error notification for Orca Cloud API failures (not Bambu)
|
||||||
if (provider == ORCA_CLOUD_PROVIDER && status >= 400 && code != HttpErrorVersionLimited) {
|
if (provider == ORCA_CLOUD_PROVIDER && status >= 400 && code != HttpErrorVersionLimited) {
|
||||||
if (m_show_http_errpr_msgdlg)
|
if (m_show_http_error_msgdlg)
|
||||||
return;
|
return;
|
||||||
m_show_http_errpr_msgdlg = true;
|
m_show_http_error_msgdlg = true;
|
||||||
|
|
||||||
wxString msg;
|
wxString msg;
|
||||||
if (!error.empty()) {
|
if (!error.empty()) {
|
||||||
@@ -4862,7 +4862,7 @@ void GUI_App::on_http_error(wxCommandEvent &evt)
|
|||||||
msg = wxString::Format(_L("API error (HTTP %u)"), status);
|
msg = wxString::Format(_L("API error (HTTP %u)"), status);
|
||||||
}
|
}
|
||||||
wxMessageBox(msg, _L("Orca Cloud API Error"), wxOK | wxICON_ERROR, wxGetApp().mainframe);
|
wxMessageBox(msg, _L("Orca Cloud API Error"), wxOK | wxICON_ERROR, wxGetApp().mainframe);
|
||||||
m_show_http_errpr_msgdlg = false;
|
m_show_http_error_msgdlg = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -324,7 +324,7 @@ private:
|
|||||||
bool m_is_dark_mode{ false };
|
bool m_is_dark_mode{ false };
|
||||||
bool m_adding_script_handler { false };
|
bool m_adding_script_handler { false };
|
||||||
bool m_side_popup_status{false};
|
bool m_side_popup_status{false};
|
||||||
bool m_show_http_errpr_msgdlg{false};
|
bool m_show_http_error_msgdlg{false};
|
||||||
bool m_show_error_msgdlg{false};
|
bool m_show_error_msgdlg{false};
|
||||||
wxString m_info_dialog_content;
|
wxString m_info_dialog_content;
|
||||||
HttpServer m_http_server;
|
HttpServer m_http_server;
|
||||||
|
|||||||
Reference in New Issue
Block a user