mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-22 22:24:01 -06:00
Merged SkeinPanel into MainFrame
This commit is contained in:
parent
93b9116565
commit
ddac2d1570
12 changed files with 835 additions and 846 deletions
|
@ -186,7 +186,7 @@ sub selection_changed {
|
|||
sub on_btn_load {
|
||||
my ($self, $is_modifier) = @_;
|
||||
|
||||
my @input_files = Slic3r::GUI::open_model($self);
|
||||
my @input_files = &Wx::wxTheApp->open_model($self);
|
||||
foreach my $input_file (@input_files) {
|
||||
my $model = eval { Slic3r::Model->read_from_file($input_file) };
|
||||
if ($@) {
|
||||
|
|
|
@ -109,7 +109,7 @@ sub update_optgroup {
|
|||
EVT_BUTTON($self, $btn, sub {
|
||||
$self->{config}->erase($opt_key);
|
||||
$self->{on_change}->() if $self->{on_change};
|
||||
Slic3r::GUI->CallAfter(sub { $self->update_optgroup });
|
||||
&Wx::wxTheApp->CallAfter(sub { $self->update_optgroup });
|
||||
});
|
||||
return $btn;
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue