X-Git-Url: https://www.flypig.org.uk/git/?p=openvpnui.git;a=blobdiff_plain;f=qml%2Fpages%2FConfigurePage.qml;fp=qml%2Fpages%2FConfigurePage.qml;h=d00f37f33fc9139107e5fc46dfb8f409e27f466d;hp=1615c97e53977c893ce3e1484af15c81f7ea8352;hb=052fa14434d3ca4b7d08c2c2fccf3791e20afbaa;hpb=e24363e314aca32e7bee952f02f517a04a8dc5f2 diff --git a/qml/pages/ConfigurePage.qml b/qml/pages/ConfigurePage.qml index 1615c97..d00f37f 100644 --- a/qml/pages/ConfigurePage.qml +++ b/qml/pages/ConfigurePage.qml @@ -140,7 +140,8 @@ Dialog { ValueButtonAlignRight { id: caCertFilename label: "CA cert" - value: "Select" + value: VpnControl.caCertFile + placeholderText: "Select" width: parent.width onClicked: { _fileDialogue = 1 @@ -150,7 +151,7 @@ Dialog { ValueButtonAlignRight { id: clientCertFilename - value: "Select" + value: ((VpnControl.clientCertFile === "") ? "Select" : VpnControl.clientCertFile) label: "Client cert" width: parent.width onClicked: { @@ -161,7 +162,7 @@ Dialog { ValueButtonAlignRight { id: clientKeyFilename - value: "Select" + value: ((VpnControl.clientKeyFile === "") ? "Select" : VpnControl.clientKeyFile) label: "Client key" width: parent.width onClicked: { @@ -172,7 +173,7 @@ Dialog { ValueButtonAlignRight { id: tlsKeyFilename - value: "Select" + value: ((VpnControl.tlsKeyFile === "") ? "Select" : VpnControl.tlsKeyFile) label: "TLS key" width: parent.width enabled: configureTLS.checked @@ -191,11 +192,9 @@ Dialog { VpnControl.setUseTLS(configureTLS.checked) VpnControl.setTlsDirection(configureTLSdirection.currentIndex) VpnControl.updateConfiguration() + VpnControl.setCaCertFile(caCertFilename.value) + VpnControl.setClientCertFile(clientCertFilename.value) + VpnControl.setClientKeyFile(clientKeyFilename.value) + VpnControl.setTlsKeyFile(tlsKeyFilename.value) } - } - - - - -