Retire the 'important' flag for options now that we have a configuration wizard.
This commit is contained in:
parent
4a94c64f7d
commit
e228b834e2
@ -54,7 +54,6 @@ our $Options = {
|
|||||||
sidetext => 'mm',
|
sidetext => 'mm',
|
||||||
cli => 'nozzle-diameter=f',
|
cli => 'nozzle-diameter=f',
|
||||||
type => 'f',
|
type => 'f',
|
||||||
important => 1,
|
|
||||||
},
|
},
|
||||||
'print_center' => {
|
'print_center' => {
|
||||||
label => 'Print center',
|
label => 'Print center',
|
||||||
@ -118,7 +117,6 @@ our $Options = {
|
|||||||
sidetext => 'mm',
|
sidetext => 'mm',
|
||||||
cli => 'filament-diameter=f',
|
cli => 'filament-diameter=f',
|
||||||
type => 'f',
|
type => 'f',
|
||||||
important => 1,
|
|
||||||
},
|
},
|
||||||
'extrusion_multiplier' => {
|
'extrusion_multiplier' => {
|
||||||
label => 'Extrusion multiplier',
|
label => 'Extrusion multiplier',
|
||||||
@ -150,7 +148,6 @@ our $Options = {
|
|||||||
cli => 'temperature=i',
|
cli => 'temperature=i',
|
||||||
type => 'i',
|
type => 'i',
|
||||||
max => 300,
|
max => 300,
|
||||||
important => 1,
|
|
||||||
},
|
},
|
||||||
'bed_temperature' => {
|
'bed_temperature' => {
|
||||||
label => 'Bed Temperature',
|
label => 'Bed Temperature',
|
||||||
|
@ -22,9 +22,6 @@ sub new {
|
|||||||
$grid_sizer->SetFlexibleDirection(wxHORIZONTAL);
|
$grid_sizer->SetFlexibleDirection(wxHORIZONTAL);
|
||||||
$grid_sizer->AddGrowableCol($p{no_labels} ? 0 : 1);
|
$grid_sizer->AddGrowableCol($p{no_labels} ? 0 : 1);
|
||||||
|
|
||||||
# grab the default font, to fix Windows font issues/keep things consistent
|
|
||||||
my $bold_font = Wx::SystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
|
|
||||||
$bold_font->SetWeight(wxFONTWEIGHT_BOLD);
|
|
||||||
my $sidetext_font = Wx::SystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
|
my $sidetext_font = Wx::SystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
|
||||||
|
|
||||||
my $onChange = $p{on_change} || sub {};
|
my $onChange = $p{on_change} || sub {};
|
||||||
@ -36,10 +33,6 @@ sub new {
|
|||||||
$label = Wx::StaticText->new($parent, -1, "$opt->{label}:", wxDefaultPosition, [$p{label_width} || 180, -1]);
|
$label = Wx::StaticText->new($parent, -1, "$opt->{label}:", wxDefaultPosition, [$p{label_width} || 180, -1]);
|
||||||
$label->Wrap($p{label_width} || 180) ; # needed to avoid Linux/GTK bug
|
$label->Wrap($p{label_width} || 180) ; # needed to avoid Linux/GTK bug
|
||||||
$grid_sizer->Add($label);
|
$grid_sizer->Add($label);
|
||||||
|
|
||||||
# set the bold font point size to the same size as all the other labels (for consistency)
|
|
||||||
$bold_font->SetPointSize($label->GetFont()->GetPointSize());
|
|
||||||
$label->SetFont($bold_font) if $opt->{important};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
my $field;
|
my $field;
|
||||||
|
Loading…
Reference in New Issue
Block a user