aboutsummaryrefslogtreecommitdiff
path: root/qml/pages
diff options
context:
space:
mode:
authorAndreas Grois <andi@grois.info>2022-10-16 11:12:15 +0200
committerAndreas Grois <andi@grois.info>2022-10-16 11:12:15 +0200
commitaa59d619c5c6f7aeae200ba930f29c4d336a0a14 (patch)
treef84bcf746d5bf0822c043a8421d00e47c8a77235 /qml/pages
parentc0558658181d3def80a15904db8ec8fb70b8985e (diff)
Add notice upon copy-to-clipboard.
Makes usability much better.
Diffstat (limited to 'qml/pages')
-rw-r--r--qml/pages/MainPage.qml10
1 files changed, 9 insertions, 1 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