Minor fix: don't reselect the 3D plater when the 2D plater is already selected

This commit is contained in:
Alessandro Ranellucci 2016-12-18 19:40:28 +01:00
parent c661a2fcd4
commit f2d8ab5b87

View File

@ -1051,7 +1051,10 @@ sub schedule_background_process {
my ($self) = @_; my ($self) = @_;
if (!$Slic3r::GUI::Settings->{_}{background_processing}) { if (!$Slic3r::GUI::Settings->{_}{background_processing}) {
$self->{preview_notebook}->SetSelection(0); my $sel = $self->{preview_notebook}->GetSelection;
if ($sel == $self->{preview3D_page_idx} || $sel == $self->{toolpaths2D_page_idx}) {
$self->{preview_notebook}->SetSelection(0);
}
} }
if (defined $self->{apply_config_timer}) { if (defined $self->{apply_config_timer}) {