mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-22 04:35:17 +00:00
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:
@@ -14494,11 +14494,16 @@ 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 (Slic3r::GUI::wxGetApp().get_inf_dialog_contect().empty()) {
|
if (p) {
|
||||||
|
#ifdef __APPLE__
|
||||||
p->hide_select_machine_dlg();
|
p->hide_select_machine_dlg();
|
||||||
}
|
#else
|
||||||
else {
|
if (Slic3r::GUI::wxGetApp().get_inf_dialog_contect().empty()) {
|
||||||
p->enter_prepare_mode();
|
p->hide_select_machine_dlg();
|
||||||
|
} else {
|
||||||
|
p->enter_prepare_mode();
|
||||||
|
}
|
||||||
|
#endif // __APPLE__
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user