Skip to content

Commit

Permalink
Hopefully fixes "Export G-Code" Disabled After First Export"
Browse files Browse the repository at this point in the history
  • Loading branch information
bubnikv committed Feb 17, 2017
1 parent 17ea15e commit 31f213d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/Slic3r/GUI/Plater.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1787,12 +1787,10 @@ sub object_list_changed {
$self->{"btn_layer_editing"}->Disable if (! $self->{config}->variable_layer_height);
}

if ($self->{export_gcode_output_file} || $self->{send_gcode_file}) {
$self->{btn_reslice}->Disable;
$self->{btn_export_gcode}->Disable;
$self->{btn_print}->Disable;
$self->{btn_send_gcode}->Disable;
}
my $export_in_progress = $self->{export_gcode_output_file} || $self->{send_gcode_file};
my $method = ($have_objects && ! $export_in_progress) ? 'Enable' : 'Disable';
$self->{"btn_$_"}->$method
for grep $self->{"btn_$_"}, qw(reslice export_gcode print send_gcode);
}

sub selection_changed {
Expand Down

0 comments on commit 31f213d

Please sign in to comment.