Updated Controller after the presets C++ port.

This commit is contained in:
bubnikv 2017-11-02 21:51:06 +01:00
parent dd9e1aff70
commit b11d9708ed
5 changed files with 26 additions and 48 deletions

View file

@ -128,8 +128,8 @@ sub _init_tabpanel {
# Update preset combo boxes (Print settings, Filament, Printer) from their respective tabs.
$self->{plater}->update_presets($tab_name, @_);
$self->{plater}->on_config_change($tab->{presets}->get_current_preset->config);
if ($self->{controller}) {
$self->{controller}->update_presets($tab_name, @_);
if ($self->{controller} && $tab_name eq 'printer') {
$self->{controller}->update_presets(@_);
}
}
});