fix Item.Label; it was not updating Item.LabelName.

This commit is contained in:
brent s. 2021-12-14 04:36:53 -05:00
parent 16e972c148
commit 5b3328f2b9
Signed by: bts
GPG Key ID: 8C004C2F93481F6B
1 changed files with 5 additions and 4 deletions

View File

@ -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
}