Fixed slice info after re-export of gcode. Fixes #1081

This commit is contained in:
Enrico Turri 2018-07-30 13:54:54 +02:00
parent df201d65f4
commit 09de343e65

View File

@ -1600,7 +1600,7 @@ sub print_info_box_show {
my ($self, $show) = @_; my ($self, $show) = @_;
my $scrolled_window_panel = $self->{scrolled_window_panel}; my $scrolled_window_panel = $self->{scrolled_window_panel};
my $scrolled_window_sizer = $self->{scrolled_window_sizer}; my $scrolled_window_sizer = $self->{scrolled_window_sizer};
return if $scrolled_window_sizer->IsShown(2) == $show; return if (!$show && ($scrolled_window_sizer->IsShown(2) == $show));
if ($show) { if ($show) {
my $print_info_sizer = $self->{print_info_sizer}; my $print_info_sizer = $self->{print_info_sizer};
@ -1836,6 +1836,8 @@ sub update {
$self->resume_background_process; $self->resume_background_process;
} }
$self->print_info_box_show(0);
# $self->{canvas}->reload_scene if $self->{canvas}; # $self->{canvas}->reload_scene if $self->{canvas};
my $selections = $self->collect_selections; my $selections = $self->collect_selections;
Slic3r::GUI::_3DScene::set_objects_selections($self->{canvas3D}, \@$selections); Slic3r::GUI::_3DScene::set_objects_selections($self->{canvas3D}, \@$selections);