Improved UX, when the user copied a key
This commit is contained in:
parent
8314e7157b
commit
c16346f790
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user