fix form evaluation for optional fields

This commit is contained in:
Jakob Ketterl
2021-03-24 23:17:50 +01:00
parent 6ddced4689
commit 19496d46a3
13 changed files with 40 additions and 31 deletions

View File

@@ -44,8 +44,8 @@ class RundsDeviceDescription(ConnectorDeviceDescription):
CheckboxInput("long", "Use 32-bit sample size (LONG)"),
]
def getMandatoryKeys(self):
return super().getMandatoryKeys() + ["device"]
def getDeviceMandatoryKeys(self):
return super().getDeviceMandatoryKeys() + ["device"]
def getOptionalKeys(self):
return super().getOptionalKeys() + ["protocol", "long"]
def getDeviceOptionalKeys(self):
return super().getDeviceOptionalKeys() + ["protocol", "long"]