Skip to content

Commit

Permalink
Fixed a bug in renaming a G-code at the end of a G-code export
Browse files Browse the repository at this point in the history
from .tmp suffix to a non .tmp file on localized Windows.
  • Loading branch information
bubnikv committed Feb 13, 2017
1 parent fd54956 commit ce8973b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Slic3r/Print.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Copy link
@landodragon141

landodragon141 Feb 13, 2017

Faild should be Failed 😄

This comment has been minimized.

Copy link
@bubnikv

bubnikv Feb 13, 2017

Author Collaborator

And that was written on a Logitech keyboard. I cannot type on the keyboard of my laptop - it too often does not register key strokes.

This comment has been minimized.

Copy link
@landodragon141

landodragon141 Feb 13, 2017

That's irritating I personally am addicted to mechanical keyboards. One I hit a key I expect RESULTS! lol

This comment has been minimized.

Copy link
@bubnikv

bubnikv via email Feb 13, 2017

Author Collaborator
}
}

Expand Down

0 comments on commit ce8973b

Please sign in to comment.