From d6e7bbba2be6e410cb5b2a13f520ba1958711392 Mon Sep 17 00:00:00 2001 From: Adrien Waksberg Date: Mon, 21 Oct 2019 19:25:47 +0200 Subject: [PATCH] fix --- gpm/cli.go | 1 - gpm/wallet.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/gpm/cli.go b/gpm/cli.go index e83837d..03ae0fb 100644 --- a/gpm/cli.go +++ b/gpm/cli.go @@ -112,7 +112,6 @@ func (c *Cli) InputBox(title string, input string, hidden bool) string { func (c *Cli) EntryBox(entry Entry) { p := widgets.NewParagraph() - p.Title = "Entry" p.SetRect(25, 0, 80, 20) p.Text = fmt.Sprintf("%s[Name:](fg:yellow) %s\n", p.Text, entry.Name) p.Text = fmt.Sprintf("%s[Group:](fg:yellow) %s\n", p.Text, entry.Group) diff --git a/gpm/wallet.go b/gpm/wallet.go index 6d4d73b..2113111 100644 --- a/gpm/wallet.go +++ b/gpm/wallet.go @@ -117,7 +117,7 @@ func (w *Wallet) Groups() []string { } } - if exist == false { + if exist == false && entry.Group != "" { groups = append(groups, entry.Group) } }