Save the excluded motor manufacturers in the preferences when they are
changed.
This commit is contained in:
parent
972d6fd507
commit
b662cdc39f
@ -151,7 +151,9 @@ public abstract class MotorFilterPanel extends JPanel {
|
||||
|
||||
@Override
|
||||
public void contentsChanged(ListDataEvent e) {
|
||||
MotorFilterPanel.this.filter.setExcludedManufacturers( manufacturerCheckList.getUncheckedItems() );
|
||||
Collection<Manufacturer> uncheckedManufacturers = manufacturerCheckList.getUncheckedItems();
|
||||
MotorFilterPanel.this.filter.setExcludedManufacturers( uncheckedManufacturers );
|
||||
((SwingPreferences) Application.getPreferences()).setExcludedMotorManufacturers(uncheckedManufacturers);
|
||||
onSelectionChanged();
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user