Merge pull request #529 from Yubico/device-panel-fix

settings: fix device panel bug
This commit is contained in:
Dag Heyman 2020-01-28 12:04:51 +01:00 committed by GitHub
commit 615e03f4d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -196,6 +196,11 @@ Flickable {
Repeater {
model: yubiKey.availableDevices
onModelChanged: {
if (yubiKey.availableDevices.length < 2) {
currentDevicePanel.isExpanded = false
}
}
StyledRadioButton {
Layout.fillWidth: true
objectName: index