mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 11:23:42 +00:00
Bugfix: crash when extending an array option by 2+ positions. #1908
This commit is contained in:
@@ -421,12 +421,15 @@ sub _set_config {
|
||||
if (defined $index) {
|
||||
my $values = $self->config->$get_m($opt_key);
|
||||
$values->[$index] = $value;
|
||||
$self->config->set($opt_key, $values);
|
||||
$self->config->set($opt_key, $values)
|
||||
or die "Failed to set $opt_key";
|
||||
} else {
|
||||
if ($serialized) {
|
||||
return $self->config->set_deserialize($opt_key, $value);
|
||||
return $self->config->set_deserialize($opt_key, $value)
|
||||
or die "Failed to set_deserialize() $opt_key";
|
||||
} else {
|
||||
return $self->config->set($opt_key, $value);
|
||||
return $self->config->set($opt_key, $value)
|
||||
or die "Failed to set $opt_key";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user