FIX:fixed the issue of macOS crashing when closing windows

jira:[none]

Change-Id: I716734c17c67a7022d9a78889bfdff1eaf54bbec
(cherry picked from commit 9274e75b3e252066612c000d905d2dc99f57b176)
This commit is contained in:
tao wang
2025-09-16 20:10:55 +08:00
committed by Noisyfox
parent 744d991ae8
commit 4a0a4913f4
+7 -2
View File
@@ -14494,12 +14494,17 @@ void Plater::send_calibration_job_finished(wxCommandEvent & evt)
void Plater::print_job_finished(wxCommandEvent &evt) void Plater::print_job_finished(wxCommandEvent &evt)
{ {
//start print failed //start print failed
if (p) {
#ifdef __APPLE__
p->hide_select_machine_dlg();
#else
if (Slic3r::GUI::wxGetApp().get_inf_dialog_contect().empty()) { if (Slic3r::GUI::wxGetApp().get_inf_dialog_contect().empty()) {
p->hide_select_machine_dlg(); p->hide_select_machine_dlg();
} } else {
else {
p->enter_prepare_mode(); p->enter_prepare_mode();
} }
#endif // __APPLE__
}
Slic3r::DeviceManager* dev = Slic3r::GUI::wxGetApp().getDeviceManager(); Slic3r::DeviceManager* dev = Slic3r::GUI::wxGetApp().getDeviceManager();