Bugfix: the Export G-code button was not re-enabled after cancelling an export job. #2754

This commit is contained in:
Alessandro Ranellucci 2015-03-28 18:53:07 +01:00
parent 2c13be1fa9
commit ce676a7ca7

View file

@ -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