mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-09 05:51:50 +08:00
QoL: Add option to not show non-utf8 step warn (#5327)
* Add option to not show non-utf8 step warn
This commit is contained in:
parent
4bcc109ce1
commit
d69489c2a8
@ -4049,9 +4049,18 @@ std::vector<size_t> Plater::priv::load_files(const std::vector<fs::path>& input_
|
|||||||
cancel = !cont;
|
cancel = !cont;
|
||||||
},
|
},
|
||||||
[](int isUtf8StepFile) {
|
[](int isUtf8StepFile) {
|
||||||
if (!isUtf8StepFile)
|
if (!isUtf8StepFile) {
|
||||||
Slic3r::GUI::show_info(nullptr, _L("Name of components inside step file is not UTF8 format!") + "\n\n" + _L("The name may show garbage characters!"),
|
const auto no_warn = wxGetApp().app_config->get_bool("step_not_utf8_no_warn");
|
||||||
_L("Attention!"));
|
if (!no_warn) {
|
||||||
|
MessageDialog dlg(nullptr, _L("Name of components inside step file is not UTF8 format!") + "\n\n" + _L("The name may show garbage characters!"),
|
||||||
|
wxString(SLIC3R_APP_FULL_NAME " - ") + _L("Attention!"), wxOK | wxICON_INFORMATION);
|
||||||
|
dlg.show_dsa_button(_L("Remember my choice."));
|
||||||
|
dlg.ShowModal();
|
||||||
|
if (dlg.get_checkbox_state()) {
|
||||||
|
wxGetApp().app_config->set_bool("step_not_utf8_no_warn", true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
nullptr, 0, obj_color_fun);
|
nullptr, 0, obj_color_fun);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user