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-02-08 17:27:34 +08:00
committed by Noisyfox
parent 744d991ae8
commit 4a0a4913f4

View File

@@ -14494,11 +14494,16 @@ void Plater::send_calibration_job_finished(wxCommandEvent & evt)
void Plater::print_job_finished(wxCommandEvent &evt)
{
//start print failed
if (Slic3r::GUI::wxGetApp().get_inf_dialog_contect().empty()) {
if (p) {
#ifdef __APPLE__
p->hide_select_machine_dlg();
}
else {
p->enter_prepare_mode();
#else
if (Slic3r::GUI::wxGetApp().get_inf_dialog_contect().empty()) {
p->hide_select_machine_dlg();
} else {
p->enter_prepare_mode();
}
#endif // __APPLE__
}