From f2d8ab5b87f6864320e342ca4386cf17e910fee8 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sun, 18 Dec 2016 19:40:28 +0100 Subject: [PATCH] Minor fix: don't reselect the 3D plater when the 2D plater is already selected --- lib/Slic3r/GUI/Plater.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm index 626564436..3243f9e70 100644 --- a/lib/Slic3r/GUI/Plater.pm +++ b/lib/Slic3r/GUI/Plater.pm @@ -1051,7 +1051,10 @@ sub schedule_background_process { my ($self) = @_; 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}) {