mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-10 16:27:54 -06:00
trying to get the export dialog for zip files.
This commit is contained in:
parent
c6695538a9
commit
90c38daeae
6 changed files with 11 additions and 16 deletions
|
@ -2185,10 +2185,14 @@ void Plater::export_gcode(fs::path output_path)
|
|||
// FIXME: ^ errors to handle?
|
||||
));
|
||||
auto start_dir = wxGetApp().app_config->get_last_output_dir(default_output_file.parent_path().string());
|
||||
wxFileDialog dlg(this, _(L("Save G-code file as:")),
|
||||
|
||||
auto fileType = printer_technology() == ptFFF ? FT_GCODE : FT_PNGZIP;
|
||||
std::string dtitle = printer_technology() == ptFFF ? L("Save G-code file as:")
|
||||
: L("Save Zip file as:");
|
||||
wxFileDialog dlg(this, _(dtitle),
|
||||
start_dir,
|
||||
default_output_file.filename().string(),
|
||||
GUI::file_wildcards[FT_GCODE],
|
||||
GUI::file_wildcards[fileType],
|
||||
wxFD_SAVE | wxFD_OVERWRITE_PROMPT
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue