mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
FIX: [STUDIO-1373] check save failed and show dialog
Change-Id: Ie8364d5d7156437152df0d87218128b00e08782f
This commit is contained in:
parent
6133ceac20
commit
81e2200efb
2 changed files with 10 additions and 1 deletions
|
@ -7414,7 +7414,11 @@ int Plater::save_project(bool saveAs)
|
|||
return wxID_CANCEL;
|
||||
|
||||
//BBS export 3mf without gcode
|
||||
export_3mf(into_path(filename), SaveStrategy::SplitModel);
|
||||
if (export_3mf(into_path(filename), SaveStrategy::SplitModel) < 0) {
|
||||
MessageDialog(this, _L("Failed to save project!\nPlease make sure the project file has not been opened by other program and try again."),
|
||||
_L("Save project"), wxOK | wxICON_WARNING).ShowModal();
|
||||
return wxID_CANCEL;
|
||||
}
|
||||
|
||||
Slic3r::remove_backup(model(), false);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue