From 8873c1041007d93c2b42df26f5d21cb804959d31 Mon Sep 17 00:00:00 2001 From: Dag Heyman Date: Tue, 28 Jan 2020 10:53:17 +0100 Subject: [PATCH] settings: fix device panel bug --- qml/SettingsView.qml | 5 +++++ 1 file changed, 5 insertions(+) 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