diff --git a/qml/SettingsView.qml b/qml/SettingsView.qml index c4724132..3c883270 100644 --- a/qml/SettingsView.qml +++ b/qml/SettingsView.qml @@ -196,6 +196,11 @@ Flickable { Repeater { model: yubiKey.availableDevices + onModelChanged: { + if (yubiKey.availableDevices.length < 2) { + currentDevicePanel.isExpanded = false + } + } StyledRadioButton { Layout.fillWidth: true objectName: index