From 16a066b2b96ccdb49e004db12ab4aaeaf83c4021 Mon Sep 17 00:00:00 2001 From: tao wang Date: Thu, 15 May 2025 19:51:35 +0800 Subject: [PATCH] ENH:use bambu style modal dialog jira:[none] Change-Id: I7bed057d31deaf8875ca854a7b075a8ce0c040c8 --- src/slic3r/GUI/GUI_App.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index 471f26693..12e72888f 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -1112,10 +1112,13 @@ void GUI_App::post_init() } else { if (ext_url_open_state == -1) { - wxString askMsg = wxString::Format(_L("This file is not from a trusted site, do you want to open it anyway?")); - ext_url_open_state = wxMessageBox(askMsg, "Bambu Studio", wxYES_NO | wxICON_EXCLAMATION); + + MessageDialog msg_dlg(nullptr, + _L("This file is not from a trusted site, do you want to open it anyway?"), "", + wxAPPLY | wxYES_NO); + ext_url_open_state = msg_dlg.ShowModal(); } - if (ext_url_open_state == wxYES) { + if (ext_url_open_state == wxID_YES) { download_url = input_str; } }