mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-29 22:59:35 -07:00
Merged SkeinPanel into MainFrame
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user