From 9fc51ba22eac38593d934bf6394165c1f1976011 Mon Sep 17 00:00:00 2001 From: Noisyfox Date: Tue, 1 Apr 2025 22:53:57 +0800 Subject: [PATCH] Disable BBL server error dialog (#9060) * Disable BBL server error dialog (SoftFever/OrcaSlicer#9045) * Log server error --- src/slic3r/GUI/GUI_App.cpp | 48 +++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index 03bcd4b644..fe149fa4ab 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -1575,30 +1575,30 @@ void GUI_App::init_networking_callbacks() // GUI::wxGetApp().request_user_handle(online_login); // }); - m_agent->set_server_callback([this](std::string url, int status) { - - CallAfter([this]() { - 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 = new NetworkErrorDialog(mainframe); - } - - if(plater()->get_select_machine_dialog() && plater()->get_select_machine_dialog()->IsShown()){ - return; - } - - if (m_server_error_dialog->m_show_again) { - return; - } - - if (m_server_error_dialog->IsShown()) { - return; - } - - m_server_error_dialog->ShowModal(); - }); + m_agent->set_server_callback([](std::string url, int status) { + BOOST_LOG_TRIVIAL(warning) << __FUNCTION__ << boost::format(": server_callback, url=%1%, status=%2%") % url % status; + //CallAfter([this]() { + // 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 = new NetworkErrorDialog(mainframe); + // } + // + // if(plater()->get_select_machine_dialog() && plater()->get_select_machine_dialog()->IsShown()){ + // return; + // } + // + // if (m_server_error_dialog->m_show_again) { + // return; + // } + // + // if (m_server_error_dialog->IsShown()) { + // return; + // } + // + // m_server_error_dialog->ShowModal(); + //}); });