From 17860fb38a53d6b7c06b28d39bdeb4d57dfdf4e1 Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Fri, 6 Aug 2021 16:30:02 +0200 Subject: [PATCH] Added cancel button into 'Save support points?' message box, changed the title --- src/slic3r/GUI/Gizmos/GLGizmoSlaSupports.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoSlaSupports.cpp b/src/slic3r/GUI/Gizmos/GLGizmoSlaSupports.cpp index fa61779ec9..15f289251f 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoSlaSupports.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoSlaSupports.cpp @@ -906,10 +906,11 @@ void GLGizmoSlaSupports::on_set_state() // on OSX with the wxMessageDialog being shown several times when clicked into. //wxMessageDialog dlg(GUI::wxGetApp().mainframe, _L("Do you want to save your manually " MessageDialog dlg(GUI::wxGetApp().mainframe, _L("Do you want to save your manually " - "edited support points?") + "\n",_L("Save changes?"), wxICON_QUESTION | wxYES | wxNO); - if (dlg.ShowModal() == wxID_YES) + "edited support points?") + "\n",_L("Save support points?"), wxICON_QUESTION | wxYES | wxNO | wxCANCEL ); + int ret = dlg.ShowModal(); + if (ret == wxID_YES) editing_mode_apply_changes(); - else + else if (ret == wxID_NO) editing_mode_discard_changes(); }); // refuse to be turned off so the gizmo is active when the CallAfter is executed