Bugfix: --datadir was ignored. #651
This commit is contained in:
parent
757515ba17
commit
ca44cba6c3
1 changed files with 1 additions and 1 deletions
|
@ -71,11 +71,11 @@ if ($opt{save}) {
|
||||||
# launch GUI
|
# launch GUI
|
||||||
my $gui;
|
my $gui;
|
||||||
if (!@ARGV && !$opt{save} && eval "require Slic3r::GUI; 1") {
|
if (!@ARGV && !$opt{save} && eval "require Slic3r::GUI; 1") {
|
||||||
$gui = Slic3r::GUI->new;
|
|
||||||
{
|
{
|
||||||
no warnings 'once';
|
no warnings 'once';
|
||||||
$Slic3r::GUI::datadir = $opt{datadir} if $opt{datadir};
|
$Slic3r::GUI::datadir = $opt{datadir} if $opt{datadir};
|
||||||
}
|
}
|
||||||
|
$gui = Slic3r::GUI->new;
|
||||||
$gui->{skeinpanel}->load_config_file($_) for @{$opt{load}};
|
$gui->{skeinpanel}->load_config_file($_) for @{$opt{load}};
|
||||||
$gui->{skeinpanel}->load_config($cli_config);
|
$gui->{skeinpanel}->load_config($cli_config);
|
||||||
$gui->MainLoop;
|
$gui->MainLoop;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue