From 5b3328f2b926c087bccd95b554eb02dade49ac55 Mon Sep 17 00:00:00 2001 From: brent s Date: Tue, 14 Dec 2021 04:36:53 -0500 Subject: [PATCH] fix Item.Label; it was not updating Item.LabelName. --- item_funcs.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/item_funcs.go b/item_funcs.go index 143b5c0..04f463d 100644 --- a/item_funcs.go +++ b/item_funcs.go @@ -1,11 +1,11 @@ package gosecret import ( - `strconv` - `strings` - `time` + "strconv" + "strings" + "time" - `github.com/godbus/dbus/v5` + "github.com/godbus/dbus/v5" ) // NewItem returns a pointer to an Item based on Collection and a Dbus path. @@ -158,6 +158,7 @@ func (i *Item) Label() (label string, err error) { } label = variant.Value().(string) + i.LabelName = label return }