mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 19:12:17 +00:00
New --no-plater and --gui-mode options. #604
This commit is contained in:
@@ -39,6 +39,9 @@ use constant MI_WEBSITE => &Wx::NewId;
|
||||
use constant MI_DOCUMENTATION => &Wx::NewId;
|
||||
|
||||
our $datadir;
|
||||
our $no_plater;
|
||||
our $mode;
|
||||
|
||||
our $Settings = {
|
||||
_ => {
|
||||
mode => 'simple',
|
||||
@@ -79,7 +82,10 @@ sub OnInit {
|
||||
Wx::Image::AddHandler(Wx::PNGHandler->new);
|
||||
my $frame = Wx::Frame->new(undef, -1, 'Slic3r', wxDefaultPosition, [760, 470], wxDEFAULT_FRAME_STYLE);
|
||||
$frame->SetIcon(Wx::Icon->new("$Slic3r::var/Slic3r_128px.png", wxBITMAP_TYPE_PNG) );
|
||||
$self->{skeinpanel} = Slic3r::GUI::SkeinPanel->new($frame, mode => $Settings->{_}{mode});
|
||||
$self->{skeinpanel} = Slic3r::GUI::SkeinPanel->new($frame,
|
||||
mode => $mode // $Settings->{_}{mode},
|
||||
no_plater => $no_plater,
|
||||
);
|
||||
$self->SetTopWindow($frame);
|
||||
|
||||
# status bar
|
||||
|
||||
Reference in New Issue
Block a user