Add error dialog after saving Project fails.

Issue #10688
This commit is contained in:
David Kocik 2023-05-29 15:55:59 +02:00
parent aea3f1dc86
commit 1a5fc8e68d

View File

@ -6638,11 +6638,14 @@ bool Plater::export_3mf(const boost::filesystem::path& output_path)
if (ret) { if (ret) {
// Success // Success
// p->statusbar()->set_status_text(format_wxstr(_L("3MF file exported to %s"), path)); // 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); p->set_project_filename(path);
} }
else { else {
// Failure // Failure
// p->statusbar()->set_status_text(format_wxstr(_L("Error exporting 3MF file %s"), path)); // 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; return ret;
} }