mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-04-18 11:49:50 +08:00
Allows hiding of the Controller tab (controller tab still defaults to visible).
Fixes #3984
This commit is contained in:
parent
d1e4fa6889
commit
90f66ea9b9
@ -89,6 +89,7 @@ our $Settings = {
|
||||
threads => $Slic3r::Config::Options->{threads}{default},
|
||||
color_toolpaths_by => 'role',
|
||||
tabbed_preset_editors => 1,
|
||||
show_host => 0,
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -115,7 +115,8 @@ sub _init_tabpanel {
|
||||
});
|
||||
|
||||
$panel->AddPage($self->{plater} = Slic3r::GUI::Plater->new($panel), "Plater");
|
||||
$panel->AddPage($self->{controller} = Slic3r::GUI::Controller->new($panel), "Controller");
|
||||
$panel->AddPage($self->{controller} = Slic3r::GUI::Controller->new($panel), "Controller")
|
||||
if ($Slic3r::GUI::Settings->{_}{show_host});
|
||||
}
|
||||
|
||||
sub _init_menubar {
|
||||
|
@ -71,6 +71,13 @@ sub new {
|
||||
tooltip => 'When opening a profile editor, it will be shown in a dialog or in a tab according to this option.',
|
||||
default => $Slic3r::GUI::Settings->{_}{tabbed_preset_editors},
|
||||
));
|
||||
$optgroup->append_single_option_line(Slic3r::GUI::OptionsGroup::Option->new(
|
||||
opt_id => 'show_host',
|
||||
type => 'bool',
|
||||
label => 'Show Controller Tab (requires restart)',
|
||||
tooltip => 'Shows/Hides the Controller Tab. Requires a restart of Slic3r.',
|
||||
default => $Slic3r::GUI::Settings->{_}{show_host},
|
||||
));
|
||||
|
||||
my $sizer = Wx::BoxSizer->new(wxVERTICAL);
|
||||
$sizer->Add($optgroup->sizer, 0, wxEXPAND | wxBOTTOM | wxLEFT | wxRIGHT, 10);
|
||||
|
BIN
share/locale/ja/slic3r.mo
Normal file
BIN
share/locale/ja/slic3r.mo
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user