From 78734352d843954de0498504b4df34aea1cfb2e1 Mon Sep 17 00:00:00 2001 From: milk Date: Tue, 1 Jul 2025 22:20:05 +0800 Subject: [PATCH] FIX:Optimize the pop-up promote for turning off the lights jira:[STUDIO-12654] Change-Id: I5a1e2056f530b8c73ef93031308facfe966e3e62 (cherry picked from commit 735e8a3259544bf2d8ac02a7ac6ca271d4506da1) --- src/slic3r/GUI/StatusPanel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } }