diff options
| author | Andreas Grois <andi@grois.info> | 2022-10-16 11:12:15 +0200 |
|---|---|---|
| committer | Andreas Grois <andi@grois.info> | 2022-10-16 11:12:15 +0200 |
| commit | aa59d619c5c6f7aeae200ba930f29c4d336a0a14 (patch) | |
| tree | f84bcf746d5bf0822c043a8421d00e47c8a77235 | |
| parent | c0558658181d3def80a15904db8ec8fb70b8985e (diff) | |
Add notice upon copy-to-clipboard.
Makes usability much better.
| -rw-r--r-- | qml/pages/MainPage.qml | 10 | ||||
| -rw-r--r-- | translations/harbour-passfish-de.ts | 6 | ||||
| -rw-r--r-- | 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 @@ </message> <message> <source>Password ready</source> - <translation>Password berechnet</translation> + <translation>Password bereit</translation> </message> <message> <source>Input needed</source> @@ -257,6 +257,10 @@ <source>Generated password</source> <translation>Generiertes Passwort</translation> </message> + <message> + <source>Copied</source> + <translation>Kopiert</translation> + </message> </context> <context> <name>ProfileEditor</name> 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 @@ <translation type="unfinished"></translation> </message> <message> - <location filename="../qml/pages/MainPage.qml" line="226"/> + <location filename="../qml/pages/MainPage.qml" line="229"/> <source>Saving settings failed.</source> <translation type="unfinished"></translation> </message> + <message> + <location filename="../qml/pages/MainPage.qml" line="234"/> + <source>Copied</source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>ProfileEditor</name> |
