Merge pull request #2494 from SiboVG/remove-duplicate-pref

Remove duplicate "Open last design file" preference from design tab
This commit is contained in:
Joe Pfeiffer 2024-06-04 17:43:08 -06:00 committed by GitHub
commit 28c92ac52a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -76,19 +76,6 @@ public class DesignPreferencesPanel extends PreferencesPanel {
spin.setEditor(new SpinnerEditor(spin));
this.add(spin, "wrap");
final JCheckBox autoOpenDesignFile = new JCheckBox(
trans.get("pref.dlg.but.openlast"));
autoOpenDesignFile.setSelected(preferences
.isAutoOpenLastDesignOnStartupEnabled());
autoOpenDesignFile.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
preferences.setAutoOpenLastDesignOnStartup(autoOpenDesignFile
.isSelected());
}
});
this.add(autoOpenDesignFile, "wrap, growx, span 2");
// // Always open leftmost tab when opening a component edit dialog
final JCheckBox alwaysOpenLeftmostTab = new JCheckBox(
trans.get("pref.dlg.checkbox.AlwaysOpenLeftmost"));