FIX: prevent the dialog in macOS

jira: [STUDIO-10386]
Change-Id: I19c5df3c2c110979d57190c9219f76f6f6911f85
(cherry picked from commit d4d4b76ce54b030de255d7382a831674b8c79817)
This commit is contained in:
xin.zhang
2025-02-14 12:06:37 +08:00
committed by Noisyfox
parent 4024060b81
commit 1fdc6e5dac

View File

@@ -3946,10 +3946,10 @@ void StatusPanel::on_set_chamber_temp()
wxEmptyString, wxICON_WARNING | wxOK | wxCANCEL); wxEmptyString, wxICON_WARNING | wxOK | wxCANCEL);
} }
if (champer_switch_head_dlg->ShowModal() != wxID_OK) /*the dialog will be blocked APPLE, let the printer send back message*/
{ #ifndef _APPLE
return; if (champer_switch_head_dlg->ShowModal() != wxID_OK) { return; }
} #endif // _APPLE
} }
obj->command_set_chamber(chamber_temp); obj->command_set_chamber(chamber_temp);