mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-20 13:17:54 -06:00
Remember last presets
This commit is contained in:
parent
0ef8da42a6
commit
a664709b31
4 changed files with 48 additions and 5 deletions
|
@ -42,6 +42,12 @@ sub OnInit {
|
|||
unless -d $_;
|
||||
}
|
||||
|
||||
# load settings
|
||||
if (-f "$datadir/slic3r.ini") {
|
||||
my $ini = eval { Slic3r::Config->read_ini("$datadir/slic3r.ini") };
|
||||
$Slic3r::Settings = $ini if $ini;
|
||||
}
|
||||
|
||||
# application frame
|
||||
Wx::Image::AddHandler(Wx::PNGHandler->new);
|
||||
my $frame = Wx::Frame->new(undef, -1, 'Slic3r', [-1, -1], [760,500], wxDEFAULT_FRAME_STYLE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue