Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2021-09-10 16:31:03 +0300
committerYuSanka <yusanka@gmail.com>2021-09-10 16:31:18 +0300
commit670ec06b971a96f2e2fb4953ca4f1eb2e9866db2 (patch)
tree035aed48636e70be4b6312e862e4e1656cf48d13 /src/slic3r
parentb9b84f4f270e59764fbf243aef3d853321d245a5 (diff)
"CANCEL" button is deleted from "Support Generator" MessageDialog
to avoid confusions when "Supports mode" is switched from right panel
Diffstat (limited to 'src/slic3r')
-rw-r--r--src/slic3r/GUI/ConfigManipulation.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/slic3r/GUI/ConfigManipulation.cpp b/src/slic3r/GUI/ConfigManipulation.cpp
index d4920d836..070773c11 100644
--- a/src/slic3r/GUI/ConfigManipulation.cpp
+++ b/src/slic3r/GUI/ConfigManipulation.cpp
@@ -171,23 +171,14 @@ void ConfigManipulation::update_print_fff_config(DynamicPrintConfig* config, con
"- Detect bridging perimeters"));
if (is_global_config)
msg_text += "\n\n" + _(L("Shall I adjust those settings for supports?"));
- //wxMessageDialog dialog(nullptr, msg_text, _(L("Support Generator")),
- MessageDialog dialog(nullptr, msg_text, _(L("Support Generator")),
- wxICON_WARNING | (is_global_config ? wxYES | wxNO | wxCANCEL : wxOK));
+ MessageDialog dialog(nullptr, msg_text, _L("Support Generator"), wxICON_WARNING | (is_global_config ? wxYES | wxNO : wxOK));
DynamicPrintConfig new_conf = *config;
auto answer = dialog.ShowModal();
if (!is_global_config || answer == wxID_YES) {
// Enable "detect bridging perimeters".
new_conf.set_key_value("overhangs", new ConfigOptionBool(true));
}
- else if (answer == wxID_NO) {
- // Do nothing, leave supports on and "detect bridging perimeters" off.
- }
- else if (answer == wxID_CANCEL) {
- // Disable supports.
- new_conf.set_key_value("support_material", new ConfigOptionBool(false));
- support_material_overhangs_queried = false;
- }
+ //else Do nothing, leave supports on and "detect bridging perimeters" off.
apply(config, &new_conf);
}
}