mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
An attempt to fix missing renaming from .gcode.tmp to .gcode
Added a missing include
This commit is contained in:
@@ -443,13 +443,13 @@ int copy_file(const std::string &from, const std::string &to, const bool with_ch
|
||||
{
|
||||
std::string to_temp = to + ".tmp";
|
||||
int ret_val = copy_file_inner(from,to_temp);
|
||||
if(ret_val == 0 && with_check)
|
||||
if(ret_val == 0)
|
||||
{
|
||||
ret_val = check_copy(from, to_temp);
|
||||
if (ret_val == 0)
|
||||
{
|
||||
if (with_check)
|
||||
ret_val = check_copy(from, to_temp);
|
||||
|
||||
if (ret_val == 0)
|
||||
rename_file(to_temp, to);
|
||||
}
|
||||
}
|
||||
return ret_val;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user