diff options
author | bubnikv <bubnikv@gmail.com> | 2017-12-20 15:32:02 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2017-12-20 15:32:02 +0300 |
commit | 7142126609fbd01102a5d9ccb45e475cb721fb66 (patch) | |
tree | f3be605e1024366c6a5a5b60133d246c8dae7b0e /lib | |
parent | c8d14fb6178f4feea906f1509e9988fceceb0e26 (diff) |
Grey out the compatible_printers_condition edit field in case
the compatible_printers list is non empty.
Changed the precendence of compatible_printers_condition over
compatible_printers. Now compatible_printers has precedence.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Slic3r/GUI/Tab.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Slic3r/GUI/Tab.pm b/lib/Slic3r/GUI/Tab.pm index e01c0a107..9253cee09 100644 --- a/lib/Slic3r/GUI/Tab.pm +++ b/lib/Slic3r/GUI/Tab.pm @@ -495,6 +495,7 @@ sub _compatible_printers_widget { $btn->$method; # All printers have been made compatible with this preset. $self->_load_key_value('compatible_printers', []) if $checkbox->GetValue; + $self->get_field('compatible_printers_condition')->toggle($checkbox->GetValue); }); EVT_BUTTON($self, $btn, sub { @@ -516,6 +517,7 @@ sub _compatible_printers_widget { my $value = [ @presets[$dlg->GetSelections] ]; if (!@$value) { $checkbox->SetValue(1); + $self->get_field('compatible_printers_condition')->toggle(1); $btn->Disable; } # All printers have been made compatible with this preset. @@ -533,6 +535,7 @@ sub _reload_compatible_printers_widget { my $method = $has_any ? 'Enable' : 'Disable'; $self->{compatible_printers_checkbox}->SetValue(! $has_any); $self->{compatible_printers_btn}->$method; + $self->get_field('compatible_printers_condition')->toggle(! $has_any); } sub update_ui_from_settings { |