Improved UX, when the user copied a key

This commit is contained in:
Thorsten Sommer 2023-02-15 20:41:44 +01:00
parent 8314e7157b
commit c16346f790
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -249,5 +249,13 @@ public partial class TextElements : UserControl
return;
Clipboard.SetText(await TextElementProcessor.GetKey(this.currentTextElement.Id));
//
// Switch the button's icon to the "ok" icon for a few
// seconds, to indicate, that the key was copied:
//
this.buttonCopyKey.Image = Icons.icons8_ok_512;
await Task.Delay(TimeSpan.FromSeconds(1));
this.buttonCopyKey.Image = Icons.icons8_key2_512;
}
}