From c69a9d6af8aec07cc22ac15228a4b99825ac19c7 Mon Sep 17 00:00:00 2001 From: Ch1ffr3punk Date: Sat, 14 Mar 2026 18:49:13 +0100 Subject: Add files via upload --- localization/yubicrypt-de.go | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'localization') diff --git a/localization/yubicrypt-de.go b/localization/yubicrypt-de.go index fa6c60b..3b66f88 100644 --- a/localization/yubicrypt-de.go +++ b/localization/yubicrypt-de.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("Ein Open Source Projekt", projURL) - + okButton := widget.NewButton("OK", func() { - // Close dialog - 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 -- cgit v1.2.3