fixed ability to share warguard in native format

This commit is contained in:
vladimir.kuznetsov 2023-08-10 10:02:13 +05:00
parent 591d98d8b6
commit c1c68cf72d
3 changed files with 8 additions and 5 deletions

View file

@ -41,6 +41,7 @@ Button {
anchors.right: parent.right
layer.enabled: true
layer.samples: 4
layer.smooth: true
layer.effect: DropShadow {
anchors.fill: backgroundCircle
horizontalOffset: 0

View file

@ -310,10 +310,12 @@ PageType {
function fillConnectionTypeModel() {
root.connectionTypesModel = [amneziaConnectionFormat]
if (currentIndex === ContainerProps.containerFromString("OpenVpn")) {
var index = proxyContainersModel.mapToSource(currentIndex)
if (index === ContainerProps.containerFromString("amnezia-openvpn")) {
root.connectionTypesModel.push(openVpnConnectionFormat)
} else if (currentIndex === ContainerProps.containerFromString("wireGuardConnectionType")) {
root.connectionTypesModel.push(amneziaConnectionFormat)
} else if (index === ContainerProps.containerFromString("amnezia-wireguard")) {
root.connectionTypesModel.push(wireGuardConnectionFormat)
}
}
}