mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -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
|
@ -4750,6 +4750,11 @@ void PlateData::parse_filament_info(GCodeProcessorResult *result)
|
|||
store_params.thumbnail_data, store_params.proFn, store_params.calibration_thumbnail_data, store_params.id_bboxes, store_params.project, store_params.export_plate_idx);
|
||||
if (result) {
|
||||
boost::filesystem::rename(filename + ".tmp", filename, ec);
|
||||
if (ec) {
|
||||
add_error("Failed to rename file: " + ec.message());
|
||||
boost::filesystem::remove(filename + ".tmp", ec);
|
||||
return false;
|
||||
}
|
||||
if (!(store_params.strategy & SaveStrategy::Silence))
|
||||
boost::filesystem::save_string_file(store_params.model->get_backup_path() + "/origin.txt", filename);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue