mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
Remember last config file path when loaded from CLI too
This commit is contained in:
@@ -10,7 +10,7 @@ use Wx::Event qw(EVT_BUTTON);
|
|||||||
use base 'Wx::Panel';
|
use base 'Wx::Panel';
|
||||||
|
|
||||||
my $last_dir;
|
my $last_dir;
|
||||||
my $last_config;
|
our $last_config;
|
||||||
|
|
||||||
sub new {
|
sub new {
|
||||||
my $class = shift;
|
my $class = shift;
|
||||||
|
|||||||
@@ -59,6 +59,8 @@ Slic3r::Config->save($opt{save}) if $opt{save};
|
|||||||
|
|
||||||
# start GUI
|
# start GUI
|
||||||
if (!@ARGV && !$opt{save} && eval "require Slic3r::GUI; 1") {
|
if (!@ARGV && !$opt{save} && eval "require Slic3r::GUI; 1") {
|
||||||
|
no warnings 'once';
|
||||||
|
$Slic3r::GUI::SkeinPanel::last_config = $opt{load};
|
||||||
Slic3r::GUI->new->MainLoop;
|
Slic3r::GUI->new->MainLoop;
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user