mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 02:07:54 -06:00
New --no-plater and --gui-mode options. #604
This commit is contained in:
parent
af50272b3b
commit
9247b3e9f4
5 changed files with 41 additions and 19 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue