mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 20:28:08 -06:00
Import config bundle automatically if found in application directory
This commit is contained in:
parent
7e1fac8f76
commit
32a333f16a
6 changed files with 50 additions and 9 deletions
|
@ -31,7 +31,8 @@ sub new_from_defaults {
|
|||
my $self = $class->new;
|
||||
my $defaults = Slic3r::Config::Full->new;
|
||||
if (@opt_keys) {
|
||||
$self->set($_, $defaults->get($_)) for @opt_keys;
|
||||
$self->set($_, $defaults->get($_))
|
||||
for grep $defaults->has($_), @opt_keys;
|
||||
} else {
|
||||
$self->apply_static($defaults);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue