Improve keyfile tooltip

This commit is contained in:
Evan Su 2022-07-13 20:40:47 -04:00 committed by GitHub
parent 21ccd93c51
commit 1c3abd8ee4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {