Hopefully fixes "Export G-Code" Disabled After First Export"
https://github.com/prusa3d/Slic3r/issues/137
This commit is contained in:
parent
17ea15eb6f
commit
31f213d6ca
@ -1787,12 +1787,10 @@ sub object_list_changed {
|
|||||||
$self->{"btn_layer_editing"}->Disable if (! $self->{config}->variable_layer_height);
|
$self->{"btn_layer_editing"}->Disable if (! $self->{config}->variable_layer_height);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($self->{export_gcode_output_file} || $self->{send_gcode_file}) {
|
my $export_in_progress = $self->{export_gcode_output_file} || $self->{send_gcode_file};
|
||||||
$self->{btn_reslice}->Disable;
|
my $method = ($have_objects && ! $export_in_progress) ? 'Enable' : 'Disable';
|
||||||
$self->{btn_export_gcode}->Disable;
|
$self->{"btn_$_"}->$method
|
||||||
$self->{btn_print}->Disable;
|
for grep $self->{"btn_$_"}, qw(reslice export_gcode print send_gcode);
|
||||||
$self->{btn_send_gcode}->Disable;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub selection_changed {
|
sub selection_changed {
|
||||||
|
Loading…
Reference in New Issue
Block a user