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 authored and Noisyfox committed 2025-01-23 11:38:22 +08:00
1 parent 478fdbc041
commit 702f121e2c
3 files changed
+41 -13

No files matched your search

+12 -4
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();
});
});