mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-09-28 17:23:17 +08:00
ENH:use bambu style modal dialog
jira:[none] Change-Id: I7bed057d31deaf8875ca854a7b075a8ce0c040c8
This commit is contained in:
parent
0d9f48c5aa
commit
16a066b2b9
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user