FIX: prevent the dialog in macOS

jira: [STUDIO-10386]
Change-Id: I19c5df3c2c110979d57190c9219f76f6f6911f85
This commit is contained in:
xin.zhang 2025-02-14 12:06:37 +08:00 committed by lane.wei
parent b547933f14
commit d4d4b76ce5
1 changed files with 4 additions and 4 deletions

View File

@ -3935,10 +3935,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);