Add hide password on SFTP page feature (#719)

Hide password on SFTP page feature
This commit is contained in:
Andrey Zaharow 2024-04-28 13:48:38 +02:00 committed by GitHub
parent 6b0f1ed429
commit 5211cdd4c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 94 additions and 42 deletions

View file

@ -159,7 +159,7 @@ PageType {
descriptionOnTop: true
parentFlickable: fl
KeyNavigation.tab: passwordLabel.rightButton
KeyNavigation.tab: passwordLabel.eyeButton
rightImageSource: "qrc:/images/controls/copy.svg"
rightImageColor: "#D7D8DB"
@ -183,7 +183,8 @@ PageType {
descriptionOnTop: true
parentFlickable: fl
Keys.onTabPressed: {
eyeButton.KeyNavigation.tab: passwordLabel.rightButton
rightButton.Keys.onTabPressed: {
if (mountButton.visible) {
mountButton.forceActiveFocus()
} else {
@ -194,6 +195,8 @@ PageType {
rightImageSource: "qrc:/images/controls/copy.svg"
rightImageColor: "#D7D8DB"
buttonImageSource: hideDescription ? "qrc:/images/controls/eye.svg" : "qrc:/images/controls/eye-off.svg"
clickedFunction: function() {
GC.copyToClipBoard(descriptionText)
PageController.showNotificationMessage(qsTr("Copied"))