实现互斥。
This commit is contained in:
@ -13,7 +13,7 @@ Window {
|
||||
|
||||
OperationItem {
|
||||
id: operationItem
|
||||
width: 510
|
||||
width: 530
|
||||
anchors.top: parent.top
|
||||
}
|
||||
|
||||
|
@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user