FIX: add a warning dialog

jira: [STUDIO-9715]
Change-Id: I376235de8a8569e63530eca914dc977a670a769c
(cherry picked from commit 4f1ad8016e11d5440127b45c48854c1ed2cf75aa)
This commit is contained in:
xin.zhang 2025-01-14 17:20:44 +08:00 committed by Noisyfox
parent 16a32d0cc4
commit 2878eb50f1
5 changed files with 27 additions and 1 deletions

View file

@ -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);
}
}