mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 02:07:54 -06:00
A couple fixes for GTK
This commit is contained in:
parent
69c3f12c60
commit
8d465aca34
2 changed files with 3 additions and 5 deletions
|
@ -50,7 +50,7 @@ sub OnInit {
|
|||
|
||||
# application frame
|
||||
Wx::Image::AddHandler(Wx::PNGHandler->new);
|
||||
my $frame = Wx::Frame->new(undef, -1, 'Slic3r', [-1, -1], [760,500], wxDEFAULT_FRAME_STYLE);
|
||||
my $frame = Wx::Frame->new(undef, -1, 'Slic3r', [-1, -1], [760,520], wxDEFAULT_FRAME_STYLE);
|
||||
$frame->SetIcon(Wx::Icon->new("$Slic3r::var/Slic3r_128px.png", &Wx::wxBITMAP_TYPE_PNG) );
|
||||
my $panel = Slic3r::GUI::SkeinPanel->new($frame);
|
||||
|
||||
|
|
|
@ -213,11 +213,9 @@ sub load_presets {
|
|||
}
|
||||
{
|
||||
my $i = first { basename($self->{presets}[$_]) eq ($Slic3r::Settings->{presets}{$self->{presets_group}} || '') } 0 .. $#{$self->{presets}};
|
||||
if (defined $i) {
|
||||
$self->{presets_choice}->SetSelection($i + 1);
|
||||
$self->{presets_choice}->SetSelection(defined $i ? $i + 1 : 0);
|
||||
$self->on_select_preset;
|
||||
}
|
||||
}
|
||||
$self->sync_presets;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue