mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 01:29:00 +08:00
If --save is called without any other config option, export full default settings. #2110
This commit is contained in:
parent
6018dafc46
commit
1dc5f5531e
@ -82,7 +82,11 @@ foreach my $c (@external_configs, Slic3r::Config->new_from_cli(%cli_options)) {
|
|||||||
|
|
||||||
# save configuration
|
# save configuration
|
||||||
if ($opt{save}) {
|
if ($opt{save}) {
|
||||||
$cli_config->save($opt{save});
|
if (@{$cli_config->get_keys} > 0) {
|
||||||
|
$cli_config->save($opt{save});
|
||||||
|
} else {
|
||||||
|
Slic3r::Config->new_from_defaults->save($opt{save});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# apply command line config on top of default config
|
# apply command line config on top of default config
|
||||||
|
Loading…
x
Reference in New Issue
Block a user