adds a missing attribute dependency

This commit is contained in:
hneemann 2021-04-30 08:33:59 +02:00
parent 0b1f538190
commit 02597a515c
2 changed files with 2 additions and 2 deletions

View File

@ -596,7 +596,7 @@ public final class Keys {
* Used to enable the storage of the last state in the Seven Seg display.
*/
public static final Key<Boolean> LED_PERSISTENCE
= new Key<>("ledPersistence", false).allowGroupEdit();
= new Key<>("ledPersistence", false).allowGroupEdit().setDependsOn(COMMON_CONNECTION);
/**
* Fitter for the atf15xx

View File

@ -144,7 +144,7 @@ public class AttributeDialog extends JDialog {
topMostTextComponent = ((EditorFactory.StringEditor) e).getTextComponent();
final Key dependsOn = key.getDependsOn();
if (dependsOn != null) {
if (dependsOn != null && !addCheckBoxes) {
for (EditorHolder ed : editors) {
if (ed.key.getKey().equals(dependsOn.getKey())) {
ed.setDependantEditor(e, key.getCheckEnabled());