mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-11-02 04:31:17 -07:00
Bugfix: --datadir was ignored. #651
This commit is contained in:
parent
7a5071f66c
commit
12b38ce694
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