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:
tao wang 2024-10-11 16:20:54 +08:00 committed by Noisyfox
parent 478fdbc041
commit 702f121e2c
3 changed files with 41 additions and 13 deletions

View file

@ -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();
});
});