fix: keyboard fix for api 'connection key' buttons (#1872)

This commit is contained in:
MrMirDan
2025-09-29 05:50:18 +03:00
committed by GitHub
parent 34309261a8
commit cef4c262e9

View File

@@ -56,7 +56,7 @@ PageType {
text: qsTr("Copy key")
leftImageSource: "qrc:/images/controls/copy.svg"
onClicked: {
clickedFunc: function() {
ApiConfigsController.copyVpnKeyToClipboard()
PageController.showNotificationMessage(qsTr("Copied"))
}
@@ -77,7 +77,7 @@ PageType {
text: qsTr("Save key as a file")
leftImageSource: "qrc:/images/controls/share-2.svg"
onClicked: {
clickedFunc: function() {
var fileName = GC.isMobile()
? "amnezia_vpn_key.vpn"
: SystemController.getFileName(
@@ -110,7 +110,7 @@ PageType {
text: qsTr("Show key text")
leftImageSource: "qrc:/images/controls/eye.svg"
onClicked: {
clickedFunc: function() {
PageController.showBusyIndicator(true)
ApiConfigsController.prepareVpnKeyExport()
PageController.showBusyIndicator(false)