summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--startupscreen/UsbModeDialog.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/startupscreen/UsbModeDialog.qml b/startupscreen/UsbModeDialog.qml
index e923ac9..de4c2f6 100644
--- a/startupscreen/UsbModeDialog.qml
+++ b/startupscreen/UsbModeDialog.qml
@@ -75,7 +75,7 @@ Dialog {
reboot.open()
}
onRejected: {
- combobox.currentIndex = SettingsManager.mode === "cdcecm" ? 0 : 1
+ combobox.currentIndex = combobox.indexOfValue(SettingsManager.usbMode)
}
ColumnLayout {
@@ -91,7 +91,7 @@ Dialog {
}
ComboBox {
id: combobox
- currentIndex: SettingsManager.mode === "cdcecm" ? 0 : 1
+ Component.onCompleted: currentIndex = indexOfValue(SettingsManager.usbMode)
model: ["cdcecm", "rndis"]
}
}