Merge branch 'dk_export_3mf'

This commit is contained in:
David Kocik 2023-06-01 15:05:17 +02:00
commit 2966405f11

View File

@ -6638,11 +6638,14 @@ bool Plater::export_3mf(const boost::filesystem::path& output_path)
if (ret) {
// Success
// p->statusbar()->set_status_text(format_wxstr(_L("3MF file exported to %s"), path));
BOOST_LOG_TRIVIAL(info) << "3MF file exported to " << path;
p->set_project_filename(path);
}
else {
// Failure
// p->statusbar()->set_status_text(format_wxstr(_L("Error exporting 3MF file %s"), path));
const wxString what = GUI::format_wxstr(_L("%1%: %2%"),_L("Unable to save file") , path_u8);
show_error(this, what);
}
return ret;
}