FIX: add a warning dialog
jira: [STUDIO-9715] Change-Id: I376235de8a8569e63530eca914dc977a670a769c (cherry picked from commit 4f1ad8016e11d5440127b45c48854c1ed2cf75aa)
This commit is contained in:
@@ -3885,6 +3885,18 @@ void StatusPanel::on_set_chamber_temp()
|
||||
m_tempCtrl_chamber->SetTagTemp(wxString::Format("%d", chamber_temp));
|
||||
m_tempCtrl_chamber->Warning(false);
|
||||
}
|
||||
|
||||
if (chamber_temp > obj->chamber_temp_switch_heat)
|
||||
{
|
||||
delete champer_switch_head_dlg;
|
||||
champer_switch_head_dlg = new MessageDialog(nullptr, _L("If the chamber temperature exceeds 40\u2103, the system will automatically switch to heating mode. Please confirm whether to switch."), wxEmptyString, wxICON_WARNING | wxOK | wxCANCEL);
|
||||
|
||||
if (champer_switch_head_dlg->ShowModal() != wxID_OK)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
obj->command_set_chamber(chamber_temp);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user