From aa59d619c5c6f7aeae200ba930f29c4d336a0a14 Mon Sep 17 00:00:00 2001 From: Andreas Grois Date: Sun, 16 Oct 2022 11:12:15 +0200 Subject: Add notice upon copy-to-clipboard. Makes usability much better. --- qml/pages/MainPage.qml | 10 +++++++++- translations/harbour-passfish-de.ts | 6 +++++- translations/harbour-passfish.ts | 7 ++++++- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/qml/pages/MainPage.qml b/qml/pages/MainPage.qml index 2a28eff..16a7908 100644 --- a/qml/pages/MainPage.qml +++ b/qml/pages/MainPage.qml @@ -199,7 +199,10 @@ Page { id: copyToClipboard enabled: passwordmaker.generator_state === 0 && passwordmaker.generated_password.length > 0 icon.source: "image://theme/icon-m-clipboard" - onClicked: Clipboard.text = passwordmaker.generated_password; + onClicked: { + Clipboard.text = passwordmaker.generated_password; + copiedNotice.show(); + } } } Timer { @@ -226,6 +229,11 @@ Page { text: qsTr("Saving settings failed.") useNotificationFallback: true } + NoticeOptional { + id: copiedNotice + text: qsTr("Copied") + useNotificationFallback: false + } Binding{ target: autoClearMasterPasswordTimer diff --git a/translations/harbour-passfish-de.ts b/translations/harbour-passfish-de.ts index 7bc5083..7a7cca6 100644 --- a/translations/harbour-passfish-de.ts +++ b/translations/harbour-passfish-de.ts @@ -165,7 +165,7 @@ Password ready - Password berechnet + Password bereit Input needed @@ -257,6 +257,10 @@ Generated password Generiertes Passwort + + Copied + Kopiert + ProfileEditor diff --git a/translations/harbour-passfish.ts b/translations/harbour-passfish.ts index 6347b54..cdc4669 100644 --- a/translations/harbour-passfish.ts +++ b/translations/harbour-passfish.ts @@ -167,10 +167,15 @@ - + Saving settings failed. + + + Copied + + ProfileEditor -- cgit v1.2.3