From ce676a7ca7d546a93e5c14d1f26105d7645fa412 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 28 Mar 2015 18:53:07 +0100 Subject: [PATCH] Bugfix: the Export G-code button was not re-enabled after cancelling an export job. #2754 --- lib/Slic3r/GUI/Plater.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm index 7bd8b882a..5d5e3911a 100644 --- a/lib/Slic3r/GUI/Plater.pm +++ b/lib/Slic3r/GUI/Plater.pm @@ -1059,6 +1059,11 @@ sub export_gcode { $self->statusbar->SetCancelCallback(sub { $self->stop_background_process; $self->statusbar->SetStatusText("Export cancelled"); + $self->{export_gcode_output_file} = undef; + $self->{send_gcode_file} = undef; + + # this updates buttons status + $self->object_list_changed; }); # start background process, whose completion event handler