mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-14 12:39:30 -07:00
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:
parent
bdf1caffd4
commit
78734352d8
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue