ENH:use bambu style modal dialog

jira:[none]

Change-Id: I7bed057d31deaf8875ca854a7b075a8ce0c040c8
This commit is contained in:
tao wang 2025-05-15 19:51:35 +08:00 committed by lane.wei
parent 0d9f48c5aa
commit 16a066b2b9

View File

@ -1112,10 +1112,13 @@ void GUI_App::post_init()
} }
else { else {
if (ext_url_open_state == -1) { 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; download_url = input_str;
} }
} }