mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06: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:
parent
478fdbc041
commit
702f121e2c
3 changed files with 41 additions and 13 deletions
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue