mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-23 20:32:10 -04:00
adds a missing attribute dependency
This commit is contained in:
parent
0b1f538190
commit
02597a515c
@ -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
|
||||
|
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user