diff --git a/src/slic3r/GUI/StatusPanel.cpp b/src/slic3r/GUI/StatusPanel.cpp index c8fe0fddcc..e8e1b1de11 100644 --- a/src/slic3r/GUI/StatusPanel.cpp +++ b/src/slic3r/GUI/StatusPanel.cpp @@ -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; } }