mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-21 20:18:17 +08:00
Bugfix: --datadir was ignored. #651
This commit is contained in:
parent
7a5071f66c
commit
12b38ce694
@ -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…
x
Reference in New Issue
Block a user