mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 05:56:02 +08:00
Fix Preferences window size. #2463
This commit is contained in:
parent
c4832c5342
commit
77d2a8aa8c
@ -5,7 +5,7 @@ use base 'Wx::Dialog';
|
|||||||
|
|
||||||
sub new {
|
sub new {
|
||||||
my ($class, $parent) = @_;
|
my ($class, $parent) = @_;
|
||||||
my $self = $class->SUPER::new($parent, -1, "Preferences", wxDefaultPosition, [500,200]);
|
my $self = $class->SUPER::new($parent, -1, "Preferences", wxDefaultPosition, wxDefaultSize);
|
||||||
$self->{values} = {};
|
$self->{values} = {};
|
||||||
|
|
||||||
my $optgroup;
|
my $optgroup;
|
||||||
@ -16,7 +16,7 @@ sub new {
|
|||||||
my ($opt_id) = @_;
|
my ($opt_id) = @_;
|
||||||
$self->{values}{$opt_id} = $optgroup->get_value($opt_id);
|
$self->{values}{$opt_id} = $optgroup->get_value($opt_id);
|
||||||
},
|
},
|
||||||
label_width => 100,
|
label_width => 200,
|
||||||
);
|
);
|
||||||
$optgroup->append_single_option_line(Slic3r::GUI::OptionsGroup::Option->new(
|
$optgroup->append_single_option_line(Slic3r::GUI::OptionsGroup::Option->new(
|
||||||
opt_id => 'mode',
|
opt_id => 'mode',
|
||||||
@ -26,6 +26,7 @@ sub new {
|
|||||||
labels => ['Simple','Expert'],
|
labels => ['Simple','Expert'],
|
||||||
values => ['simple','expert'],
|
values => ['simple','expert'],
|
||||||
default => $Slic3r::GUI::Settings->{_}{mode},
|
default => $Slic3r::GUI::Settings->{_}{mode},
|
||||||
|
width => 100,
|
||||||
));
|
));
|
||||||
$optgroup->append_single_option_line(Slic3r::GUI::OptionsGroup::Option->new(
|
$optgroup->append_single_option_line(Slic3r::GUI::OptionsGroup::Option->new(
|
||||||
opt_id => 'version_check',
|
opt_id => 'version_check',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user