summaryrefslogtreecommitdiffstats
path: root/yubicrypt.go
diff options
context:
space:
mode:
authorCh1ffr3punk <sacenator@gmail.com>2026-03-14 18:49:13 +0100
committerGitHub <noreply@github.com>2026-03-14 18:49:13 +0100
commitc69a9d6af8aec07cc22ac15228a4b99825ac19c7 (patch)
treec6b894e3b847e5e52cd7c368964a2041fcaefa46 /yubicrypt.go
parent6a3b7e6a1c510c6e55d3d303d7bd3dd650f93a2e (diff)
downloadyubicrpt-cli-c69a9d6af8aec07cc22ac15228a4b99825ac19c7.tar.gz
yubicrpt-cli-c69a9d6af8aec07cc22ac15228a4b99825ac19c7.tar.xz
yubicrpt-cli-c69a9d6af8aec07cc22ac15228a4b99825ac19c7.zip
Add files via upload
Diffstat (limited to 'yubicrypt.go')
-rw-r--r--yubicrypt.go19
1 files changed, 11 insertions, 8 deletions
diff --git a/yubicrypt.go b/yubicrypt.go
index 0f4a6fc..f614750 100644
--- a/yubicrypt.go
+++ b/yubicrypt.go
@@ -233,19 +233,22 @@ func (g *GUI) applyTheme() {
}
}
-// show info pop-up
-func (g *GUI) showInfoPopup() {
+// showInfoPopup
+func (n *GUI) showInfoPopup() {
projURL, _ := url.Parse("https://github.com/Ch1ffr3punk/yubicrypt")
+
projectLink := widget.NewHyperlink("An Open Source project", projURL)
-
+
okButton := widget.NewButton("OK", func() {
- // Dialog schließen
- g.window.Canvas().Overlays().Remove(g.window.Canvas().Overlays().Top())
+ overlays := n.window.Canvas().Overlays()
+ if overlays.Top() != nil {
+ overlays.Remove(overlays.Top())
+ }
})
okButton.Importance = widget.HighImportance
-
+
content := container.NewVBox(
- widget.NewLabelWithStyle("yubicrypt v0.1.9", fyne.TextAlignCenter, fyne.TextStyle{Bold: true}),
+ widget.NewLabelWithStyle("yubicrypt v0.2.0", fyne.TextAlignCenter, fyne.TextStyle{Bold: true}),
widget.NewSeparator(),
container.NewHBox(
layout.NewSpacer(),
@@ -262,7 +265,7 @@ func (g *GUI) showInfoPopup() {
),
)
- dialog.ShowCustom("", "", content, g.window)
+ dialog.ShowCustomWithoutButtons("", content, n.window)
}
// onSignText triggers the signing process for text in the GUI