mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Do not prevent validation errors to launch the GUI
This commit is contained in:
@@ -73,7 +73,9 @@ die $@ if $@ && $opt{gui};
|
|||||||
Slic3r::Config->set($_ => $cli_options{$_}) for keys %cli_options;
|
Slic3r::Config->set($_ => $cli_options{$_}) for keys %cli_options;
|
||||||
|
|
||||||
# validate configuration, convert options like --print-center to arrayrefs, init extruders etc.
|
# validate configuration, convert options like --print-center to arrayrefs, init extruders etc.
|
||||||
Slic3r::Config->validate;
|
# ignore errors if we're launching the GUI
|
||||||
|
eval { Slic3r::Config->validate };
|
||||||
|
die $@ unless $gui;
|
||||||
|
|
||||||
# save configuration
|
# save configuration
|
||||||
Slic3r::Config->save($opt{save}) if $opt{save};
|
Slic3r::Config->save($opt{save}) if $opt{save};
|
||||||
|
|||||||
Reference in New Issue
Block a user