FIX: add a warning dialog

jira: [STUDIO-9715]
Change-Id: I376235de8a8569e63530eca914dc977a670a769c
(cherry picked from commit 4f1ad8016e11d5440127b45c48854c1ed2cf75aa)
This commit is contained in:
xin.zhang authored and Noisyfox committed 2025-09-10 09:22:19 +08:00
1 parent 16a32d0cc4
commit 2878eb50f1
5 files changed
+27 -1

No files matched your search

+12
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);
}
}