mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
New erase() method for DynamicConfig objects
This commit is contained in:
parent
b5b8fb606f
commit
42519174cd
4 changed files with 8 additions and 1 deletions
|
@ -132,7 +132,7 @@ sub update_optgroup {
|
|||
my ($opt_key) = @{$line->{options}}; # we assume that we have one option per line
|
||||
my $btn = Wx::BitmapButton->new($self, -1, Wx::Bitmap->new("$Slic3r::var/delete.png", wxBITMAP_TYPE_PNG));
|
||||
EVT_BUTTON($self, $btn, sub {
|
||||
delete $self->model_object->config->{$opt_key};
|
||||
$self->model_object->config->erase($opt_key);
|
||||
Slic3r::GUI->CallAfter(sub { $self->update_optgroup });
|
||||
});
|
||||
return $btn;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue