Fix MainFrame after recent changes in preset handling

This commit is contained in:
Alessandro Ranellucci 2014-12-25 18:18:41 +01:00
parent 70601eeb51
commit cc36aff66a

View File

@ -435,7 +435,7 @@ sub extra_variables {
my %extra_variables = (); my %extra_variables = ();
if ($self->{mode} eq 'expert') { if ($self->{mode} eq 'expert') {
$extra_variables{"${_}_preset"} = $self->{options_tabs}{$_}->current_preset->{name} $extra_variables{"${_}_preset"} = $self->{options_tabs}{$_}->get_current_preset->name
for qw(print filament printer); for qw(print filament printer);
} }
return { %extra_variables }; return { %extra_variables };