Skip to content

Commit

Permalink
Make Preset::load_config return a config if it short-circuits. Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
lordofhyphens committed Jun 4, 2017
1 parent c36fadd commit 1d6170b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Slic3r/GUI/Preset.pm
Expand Up @@ -183,7 +183,7 @@ sub dirty_config {
sub load_config {
my ($self) = @_;

return if $self->_loaded;
return $self->_config if $self->_loaded;

my @keys = $self->_group_class->options;
my @extra_keys = $self->_group_class->overriding_options;
Expand Down

0 comments on commit 1d6170b

Please sign in to comment.