From 1c3abd8ee4399a6267b2520a2565e12b3aa8f25c Mon Sep 17 00:00:00 2001 From: Evan Su <48808396+HACKERALERT@users.noreply.github.com> Date: Wed, 13 Jul 2022 20:40:47 -0400 Subject: [PATCH] Improve keyfile tooltip --- src/Picocrypt.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Picocrypt.go b/src/Picocrypt.go index c293f43..7907548 100644 --- a/src/Picocrypt.go +++ b/src/Picocrypt.go @@ -419,7 +419,12 @@ func draw() { modalId++ giu.Update() }), - giu.Tooltip("Manage keyfiles to use for encryption."), + giu.Tooltip("Manage keyfiles to use for "+(func() string { + if mode != "decrypt" { + return "encryption." + } + return "decryption." + }())), giu.Style().SetDisabled(mode == "decrypt").To( giu.Button("Create").Size(54, 0).OnClick(func() {