From c49d6a3ec781e6100ddeace0388502ba840665c7 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Tue, 19 Dec 2017 21:43:24 +0100 Subject: [PATCH] Try to fix the config wizard initialization on OSX. There is an issue when the config wizard is started from the help menu and the "other" workflow is followed without clearing the user profile directory. --- lib/Slic3r/GUI/MainFrame.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/Slic3r/GUI/MainFrame.pm b/lib/Slic3r/GUI/MainFrame.pm index bf58ebcafb..f18a1881ed 100644 --- a/lib/Slic3r/GUI/MainFrame.pm +++ b/lib/Slic3r/GUI/MainFrame.pm @@ -641,9 +641,11 @@ sub config_wizard { } if (defined $result->{config}) { # Wizard returned a config. Add the config to each of the preset types. - # Select and load the "-- default --" preset. - foreach my $tab (values %{$self->{options_tabs}}) { - $tab->select_preset(undef, 1); + # Select and load the "-- default --" preset, start with the printer tab as it may revert + # the print and filament profile to the first visible one, which may have some + # printer compatibility configuration set, which we don't want to inherit. + foreach my $tab (qw(printer print filament)) { + $self->{options_tabs}->$tab->select_preset(undef, 1); } # Load the config over the previously selected defaults. $self->load_config($result->{config});