mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-22 06:04:01 -06:00
"CANCEL" button is deleted from "Support Generator" MessageDialog
to avoid confusions when "Supports mode" is switched from right panel
This commit is contained in:
parent
b9b84f4f27
commit
670ec06b97
1 changed files with 2 additions and 11 deletions
|
@ -171,23 +171,14 @@ void ConfigManipulation::update_print_fff_config(DynamicPrintConfig* config, con
|
||||||
"- Detect bridging perimeters"));
|
"- Detect bridging perimeters"));
|
||||||
if (is_global_config)
|
if (is_global_config)
|
||||||
msg_text += "\n\n" + _(L("Shall I adjust those settings for supports?"));
|
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 : wxOK));
|
||||||
MessageDialog dialog(nullptr, msg_text, _(L("Support Generator")),
|
|
||||||
wxICON_WARNING | (is_global_config ? wxYES | wxNO | wxCANCEL : wxOK));
|
|
||||||
DynamicPrintConfig new_conf = *config;
|
DynamicPrintConfig new_conf = *config;
|
||||||
auto answer = dialog.ShowModal();
|
auto answer = dialog.ShowModal();
|
||||||
if (!is_global_config || answer == wxID_YES) {
|
if (!is_global_config || answer == wxID_YES) {
|
||||||
// Enable "detect bridging perimeters".
|
// Enable "detect bridging perimeters".
|
||||||
new_conf.set_key_value("overhangs", new ConfigOptionBool(true));
|
new_conf.set_key_value("overhangs", new ConfigOptionBool(true));
|
||||||
}
|
}
|
||||||
else if (answer == wxID_NO) {
|
//else Do nothing, leave supports on and "detect bridging perimeters" off.
|
||||||
// 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;
|
|
||||||
}
|
|
||||||
apply(config, &new_conf);
|
apply(config, &new_conf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue