mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-25 15:47:25 +08:00
An attempt to fix missing renaming from .gcode.tmp to .gcode
Added a missing include
This commit is contained in:
parent
8c7fa7f69e
commit
13f1bb2e43
@ -443,14 +443,14 @@ int copy_file(const std::string &from, const std::string &to, const bool with_ch
|
|||||||
{
|
{
|
||||||
std::string to_temp = to + ".tmp";
|
std::string to_temp = to + ".tmp";
|
||||||
int ret_val = copy_file_inner(from,to_temp);
|
int ret_val = copy_file_inner(from,to_temp);
|
||||||
if(ret_val == 0 && with_check)
|
|
||||||
{
|
|
||||||
ret_val = check_copy(from, to_temp);
|
|
||||||
if(ret_val == 0)
|
if(ret_val == 0)
|
||||||
{
|
{
|
||||||
|
if (with_check)
|
||||||
|
ret_val = check_copy(from, to_temp);
|
||||||
|
|
||||||
|
if (ret_val == 0)
|
||||||
rename_file(to_temp, to);
|
rename_file(to_temp, to);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return ret_val;
|
return ret_val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <functional>
|
||||||
|
|
||||||
namespace Slic3r {
|
namespace Slic3r {
|
||||||
namespace GUI {
|
namespace GUI {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user