Use .gcode.3mf as ext for gcode 3mf files (#8928)

This commit is contained in:
SoftFever 2025-03-16 22:17:38 +08:00 committed by GitHub
parent 69154652ba
commit e6467d4872
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 3 deletions

View file

@ -11694,7 +11694,7 @@ void Plater::export_gcode_3mf(bool export_all)
show_error(this, ex.what(), false);
return;
}
default_output_file.replace_extension(".3mf");
default_output_file.replace_extension(".gcode.3mf");
default_output_file = fs::path(Slic3r::fold_utf8_to_ascii(default_output_file.string()));
//Get a last save path
@ -11706,7 +11706,7 @@ void Plater::export_gcode_3mf(bool export_all)
wxFileDialog dlg(this, _L("Save Sliced file as:"),
start_dir,
from_path(default_output_file.filename()),
GUI::file_wildcards(FT_3MF, ext),
GUI::file_wildcards(FT_GCODE_3MF, ""),
wxFD_SAVE | wxFD_OVERWRITE_PROMPT
);
if (dlg.ShowModal() == wxID_OK) {