mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-14 15:51:48 +08:00
Bugfix: each tab was loading too much from external config files
This commit is contained in:
parent
4e2936020b
commit
a8e9b6926a
@ -183,7 +183,10 @@ sub on_select_preset {
|
|||||||
}
|
}
|
||||||
eval {
|
eval {
|
||||||
local $SIG{__WARN__} = Slic3r::GUI::warning_catcher($self);
|
local $SIG{__WARN__} = Slic3r::GUI::warning_catcher($self);
|
||||||
$self->{config}->apply(Slic3r::Config->load($preset->{file}));
|
my $external_config = Slic3r::Config->load($preset->{file});
|
||||||
|
foreach my $opt_key (@{$self->{options}}) {
|
||||||
|
$self->{config}->set($opt_key, $external_config->get($opt_key));
|
||||||
|
}
|
||||||
};
|
};
|
||||||
Slic3r::GUI::catch_error($self);
|
Slic3r::GUI::catch_error($self);
|
||||||
$preset->{external}
|
$preset->{external}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user