fixed ability to share warguard in native format
This commit is contained in:
parent
591d98d8b6
commit
c1c68cf72d
3 changed files with 8 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue