Skip to content

Commit

Permalink
Allows hiding of the Controller tab (controller tab still defaults to…
Browse files Browse the repository at this point in the history
… visible).

Fixes #3984
  • Loading branch information
lordofhyphens committed Sep 28, 2017
1 parent d1e4fa6 commit 90f66ea
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/Slic3r/GUI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ our $Settings = {
threads => $Slic3r::Config::Options->{threads}{default},
color_toolpaths_by => 'role',
tabbed_preset_editors => 1,
show_host => 0,
},
};

Expand Down
3 changes: 2 additions & 1 deletion lib/Slic3r/GUI/MainFrame.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
7 changes: 7 additions & 0 deletions lib/Slic3r/GUI/Preferences.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Binary file added share/locale/ja/slic3r.mo
Binary file not shown.

0 comments on commit 90f66ea

Please sign in to comment.