minor ui fixes
This commit is contained in:
parent
420c616e9d
commit
f7926847ac
11 changed files with 50 additions and 34 deletions
|
|
@ -19,9 +19,19 @@ DrawerType {
|
|||
property alias configContentHeaderText: configContentHeader.headerText
|
||||
property alias contentVisible: content.visible
|
||||
|
||||
property string configExtension: ".vpn"
|
||||
property string configCaption: qsTr("Save AmneziaVPN config")
|
||||
property string configFileName: "amnezia_config.vpn"
|
||||
|
||||
width: parent.width
|
||||
height: parent.height * 0.9
|
||||
|
||||
onClosed: {
|
||||
configExtension = ".vpn"
|
||||
configCaption = qsTr("Save AmneziaVPN config")
|
||||
configFileName = "amnezia_config.vpn"
|
||||
}
|
||||
|
||||
Item {
|
||||
anchors.fill: parent
|
||||
|
||||
|
|
@ -58,7 +68,7 @@ DrawerType {
|
|||
imageSource: "qrc:/images/controls/share-2.svg"
|
||||
|
||||
onClicked: {
|
||||
ExportController.saveFile()
|
||||
ExportController.saveFile(configExtension, configCaption, configFileName)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -161,7 +161,7 @@ And if you don't like the app, all the more support it - the donation will be us
|
|||
leftImageSource: "qrc:/images/controls/amnezia.svg"
|
||||
|
||||
clickedFunction: function() {
|
||||
Qt.openUrlExternally(qsTr("amnezia.org/"))
|
||||
Qt.openUrlExternally(qsTr("https://amnezia.org"))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -67,7 +67,6 @@ PageType {
|
|||
Layout.rightMargin: 16
|
||||
|
||||
text: qsTr("Use AmneziaDNS if installed on the server")
|
||||
descriptionText: qsTr("Internal IP address 172.29.172.254")
|
||||
|
||||
checked: SettingsController.isAmneziaDnsEnabled()
|
||||
onCheckedChanged: {
|
||||
|
|
|
|||
|
|
@ -73,10 +73,6 @@ PageType {
|
|||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
console.log(qrCodeRectange.x)
|
||||
console.log(qrCodeRectange.y)
|
||||
console.log(qrCodeRectange.width)
|
||||
|
||||
qrCodeReader.setCameraSize(Qt.rect(qrCodeRectange.x,
|
||||
qrCodeRectange.y,
|
||||
qrCodeRectange.width,
|
||||
|
|
|
|||
|
|
@ -41,8 +41,20 @@ PageType {
|
|||
}
|
||||
break;
|
||||
}
|
||||
case PageShare.ConfigType.OpenVpn: ExportController.generateOpenVpnConfig(); break;
|
||||
case PageShare.ConfigType.WireGuard: ExportController.generateWireGuardConfig(); break;
|
||||
case PageShare.ConfigType.OpenVpn: {
|
||||
ExportController.generateOpenVpnConfig();
|
||||
shareConnectionDrawer.configCaption = qsTr("Save OpenVPN config")
|
||||
shareConnectionDrawer.configExtension = ".ovpn"
|
||||
shareConnectionDrawer.configFileName = "amnezia_for_openvpn"
|
||||
break;
|
||||
}
|
||||
case PageShare.ConfigType.WireGuard: {
|
||||
ExportController.generateWireGuardConfig();
|
||||
shareConnectionDrawer.configCaption = qsTr("Save WireGuard config")
|
||||
shareConnectionDrawer.configExtension = ".conf"
|
||||
shareConnectionDrawer.configFileName = "amnezia_for_wireguard"
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
PageController.showBusyIndicator(false)
|
||||
|
|
@ -267,6 +279,10 @@ PageType {
|
|||
ValueFilter {
|
||||
roleName: "isInstalled"
|
||||
value: true
|
||||
},
|
||||
ValueFilter {
|
||||
roleName: "isShareable"
|
||||
value: true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -339,7 +355,6 @@ PageType {
|
|||
|
||||
listView: ListViewWithRadioButtonType {
|
||||
onCurrentIndexChanged: {
|
||||
console.log(currentIndex)
|
||||
exportTypeSelector.currentIndex = currentIndex
|
||||
exportTypeSelector.text = selectedText
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue