-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed a bug in renaming a G-code at the end of a G-code export
from .tmp suffix to a non .tmp file on localized Windows.
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -421,11 +421,11 @@ sub write_gcode { | |
if ($tempfile) { | ||
my $i; | ||
for ($i = 0; $i < 5; $i += 1) { | ||
last if (rename $tempfile, $file); | ||
last if (rename Slic3r::encode_path($tempfile), Slic3r::encode_path($file)); | ||
# Wait for 1/4 seconds and try to rename once again. | ||
select(undef, undef, undef, 0.25); | ||
} | ||
Slic3r::debugf "Faild t remove the output G-code file from $tempfile to $file. Is $tempfile locked?\n" if ($i == 5); | ||
Slic3r::debugf "Faild to remove the output G-code file from $tempfile to $file. Is $tempfile locked?\n" if ($i == 5); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
bubnikv
Author
Collaborator
|
||
} | ||
} | ||
|
||
|
Faild should be Failed 😄