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 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'qml') 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 -- cgit v1.2.3