diff options
Diffstat (limited to 'lib/Slic3r/GUI/Preferences.pm')
-rw-r--r-- | lib/Slic3r/GUI/Preferences.pm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/Slic3r/GUI/Preferences.pm b/lib/Slic3r/GUI/Preferences.pm index 74846cfc9..ed210d229 100644 --- a/lib/Slic3r/GUI/Preferences.pm +++ b/lib/Slic3r/GUI/Preferences.pm @@ -58,6 +58,13 @@ sub new { default => $Slic3r::GUI::Settings->{_}{background_processing}, readonly => !$Slic3r::have_threads, )); + $optgroup->append_single_option_line(Slic3r::GUI::OptionsGroup::Option->new( + opt_id => 'no_controller', + type => 'bool', + label => 'Disable USB/serial connection', + tooltip => 'Disable communication with the printer over a serial / USB cable. This simplifies the user interface in case the printer is never attached to the computer.', + default => $Slic3r::GUI::Settings->{_}{no_controller}, + )); my $sizer = Wx::BoxSizer->new(wxVERTICAL); $sizer->Add($optgroup->sizer, 0, wxEXPAND | wxBOTTOM | wxLEFT | wxRIGHT, 10); @@ -75,7 +82,7 @@ sub new { sub _accept { my $self = shift; - if ($self->{values}{mode}) { + if ($self->{values}{mode} || defined($self->{values}{no_controller})) { Slic3r::GUI::warning_catcher($self)->("You need to restart Slic3r to make the changes effective."); } |