Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2017-12-19 23:43:24 +0300
committerbubnikv <bubnikv@gmail.com>2017-12-19 23:43:24 +0300
commitc49d6a3ec781e6100ddeace0388502ba840665c7 (patch)
tree571876be437171db867ca99fab70142c1cb7b454 /lib
parent67c6823ddee5fa097fc1c294a3e94447d8a95a3f (diff)
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/Slic3r/GUI/MainFrame.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Slic3r/GUI/MainFrame.pm b/lib/Slic3r/GUI/MainFrame.pm
index bf58ebcaf..f18a1881e 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});