mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
NEW:add options that are dont show again
jira:[dont show again] Change-Id: I6a025f7eb0902a36088f712e7dd511e4c35411d2 (cherry picked from commit 3be065d5676a7b74611dedfad8c67a8661950860)
This commit is contained in:
@@ -1574,13 +1574,21 @@ void GUI_App::init_networking_callbacks()
|
||||
m_agent->set_server_callback([this](std::string url, int status) {
|
||||
|
||||
CallAfter([this]() {
|
||||
if (m_server_error_dialog) {
|
||||
m_server_error_dialog->EndModal(wxCLOSE);
|
||||
if (!m_server_error_dialog) {
|
||||
/*m_server_error_dialog->EndModal(wxCLOSE);
|
||||
m_server_error_dialog->Destroy();
|
||||
m_server_error_dialog = nullptr;
|
||||
m_server_error_dialog = nullptr;*/
|
||||
m_server_error_dialog = new NetworkErrorDialog(mainframe);
|
||||
}
|
||||
|
||||
if (m_server_error_dialog->m_show_again) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_server_error_dialog->IsShown()) {
|
||||
return;
|
||||
}
|
||||
|
||||
m_server_error_dialog = new NetworkErrorDialog(mainframe);
|
||||
m_server_error_dialog->ShowModal();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user