diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2012-07-15 19:54:57 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2012-07-15 19:55:58 +0400 |
commit | 9210c708fc63edf0e92a05fc1f7229de57880b99 (patch) | |
tree | 5c63dd751fd81593035a2ce1b4fab1d9a3d01cae /slic3r.pl | |
parent | e228b834e2a94c5f98d304ddc3f57dbedaaae5f2 (diff) |
Compatibility with --load and new GUI
Diffstat (limited to 'slic3r.pl')
-rwxr-xr-x | slic3r.pl | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -72,8 +72,9 @@ Slic3r::Config->save($opt{save}) if $opt{save}; # start GUI if (!@ARGV && !$opt{save} && eval "require Slic3r::GUI; 1") { no warnings 'once'; - $Slic3r::GUI::SkeinPanel::last_config = $opt{load} ? $opt{load}[0] : undef; - Slic3r::GUI->new->MainLoop; + my $gui = Slic3r::GUI->new; + $gui->{skeinpanel}->load_config($opt{load}[0]) if $opt{load}; + $gui->MainLoop; exit; } die $@ if $@ && $opt{gui}; |