mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 19:12:38 -07:00
Fixed update of "dirty" profile when the "compatible_printers"
option appears (filter is active) or disappears (no filter active, compatible with any printer).
This commit is contained in:
@@ -442,16 +442,9 @@ sub _load_key_value {
|
||||
$self->{config}->set($opt_key, $value);
|
||||
# Mark the print & filament enabled if they are compatible with the currently selected preset.
|
||||
if ($opt_key eq 'compatible_printers') {
|
||||
my $was_compatible = $self->{presets}->get_edited_preset->compatible;
|
||||
wxTheApp->{preset_bundle}->update_compatible_with_printer(0);
|
||||
if ($was_compatible != $self->{presets}->get_edited_preset->compatible) {
|
||||
# This is certainly not a tab page.
|
||||
# Trigger the on_presets_changed event so that we also update the "compatible" flag at the plater selector.
|
||||
$self->_on_presets_changed;
|
||||
}
|
||||
} else {
|
||||
$self->{presets}->update_dirty_ui($self->{presets_choice});
|
||||
}
|
||||
$self->{presets}->update_dirty_ui($self->{presets_choice});
|
||||
$self->_on_presets_changed;
|
||||
$self->_update;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user