FIX:Optimize the pop-up promote for turning off the lights

jira:[STUDIO-12654]

Change-Id: I5a1e2056f530b8c73ef93031308facfe966e3e62
(cherry picked from commit 735e8a3259544bf2d8ac02a7ac6ca271d4506da1)
This commit is contained in:
milk 2025-07-01 22:20:05 +08:00 committed by Noisyfox
parent bdf1caffd4
commit 78734352d8

View file

@ -4948,9 +4948,9 @@ void StatusPanel::on_lamp_switch(wxCommandEvent &event)
} else {
if (obj->m_lamp_close_recheck) {
MessageDialog msg_dlg(nullptr, _L("Turning off the lights during the task will cause the failure of AI monitoring, like spaghetti dectection. Please choose carefully."), wxEmptyString, wxICON_WARNING | wxOK | wxCANCEL);
msg_dlg.SetButtonLabel(wxID_OK, _L("Turn it Off"));
msg_dlg.SetButtonLabel(wxID_CANCEL, _L("Keep it On"));
if (msg_dlg.ShowModal() != wxID_OK) {
msg_dlg.SetButtonLabel(wxID_OK, _L("Keep it On"));
msg_dlg.SetButtonLabel(wxID_CANCEL, _L("Turn it Off"));
if (msg_dlg.ShowModal() != wxID_CANCEL) {
return;
}
}