Bugfix: after the recent changes to --load, the GUI was suggesting a bad name in the save configuration window

This commit is contained in:
Alessandro Ranellucci 2012-01-28 15:46:01 +01:00
parent 669341cd11
commit 8cdf9debfb

View file

@ -65,7 +65,7 @@ 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};
$Slic3r::GUI::SkeinPanel::last_config = $opt{load} ? $opt{load}[0] : undef;
Slic3r::GUI->new->MainLoop;
exit;
}