实现互斥。

This commit is contained in:
luocai
2024-09-11 15:45:19 +08:00
parent f74081a06a
commit 9ed27e2c37
8 changed files with 54 additions and 27 deletions

View File

@ -13,7 +13,7 @@ Window {
OperationItem {
id: operationItem
width: 510
width: 530
anchors.top: parent.top
}

View File

@ -45,6 +45,13 @@ Item {
Switch {
id: strictMode
}
Label {
text: qsTr("互斥模式")
}
ComboBox {
id: excludeMode
model: ["无","仅比对","互斥"]
}
Label {
text: qsTr("超时时间")
}
@ -76,9 +83,9 @@ Item {
if (enrolling) {
App.module.reset()
} else if (extendedMode.checked) {
App.enrollExtended(enrollName.text, strictMode.checked, persistence.checked, parseInt(enrollTimeout.text))
App.enrollExtended(enrollName.text, strictMode.checked, excludeMode.currentIndex, persistence.checked, parseInt(enrollTimeout.text))
} else {
App.enroll(enrollName.text, strictMode.checked, persistence.checked, parseInt(enrollTimeout.text))
App.enroll(enrollName.text, strictMode.checked, excludeMode.currentIndex, persistence.checked, parseInt(enrollTimeout.text))
}
}
}