Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Slic3r/GUI.pm')
-rw-r--r--lib/Slic3r/GUI.pm13
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/Slic3r/GUI.pm b/lib/Slic3r/GUI.pm
index 077b5625b..7f4a028a5 100644
--- a/lib/Slic3r/GUI.pm
+++ b/lib/Slic3r/GUI.pm
@@ -53,6 +53,8 @@ use constant FILE_WILDCARDS => {
use constant MODEL_WILDCARD => join '|', @{&FILE_WILDCARDS}{qw(known stl obj amf)};
our $datadir;
+# If set, the "Controller" tab for the control of the printer over serial line and the serial port settings are hidden.
+our $no_controller;
our $no_plater;
our $mode;
our $autosave;
@@ -64,6 +66,9 @@ our $Settings = {
version_check => 1,
autocenter => 1,
background_processing => 1,
+ # If set, the "Controller" tab for the control of the printer over serial line and the serial port settings are hidden.
+ # By default, Prusa has the controller hidden.
+ no_controller => 1,
},
};
@@ -115,6 +120,8 @@ sub OnInit {
$Settings->{_}{mode} ||= 'expert';
$Settings->{_}{autocenter} //= 1;
$Settings->{_}{background_processing} //= 1;
+ # If set, the "Controller" tab for the control of the printer over serial line and the serial port settings are hidden.
+ $Settings->{_}{no_controller} //= 1;
}
$Settings->{_}{version} = $Slic3r::VERSION;
$self->save_settings;
@@ -122,8 +129,10 @@ sub OnInit {
# application frame
Wx::Image::AddHandler(Wx::PNGHandler->new);
$self->{mainframe} = my $frame = Slic3r::GUI::MainFrame->new(
- mode => $mode // $Settings->{_}{mode},
- no_plater => $no_plater,
+ mode => $mode // $Settings->{_}{mode},
+ # If set, the "Controller" tab for the control of the printer over serial line and the serial port settings are hidden.
+ no_controller => $no_controller // $Settings->{_}{no_controller},
+ no_plater => $no_plater,
);
$self->SetTopWindow($frame);