fix Item.Label; it was not updating Item.LabelName.
This commit is contained in:
parent
16e972c148
commit
5b3328f2b9
@ -1,11 +1,11 @@
|
|||||||
package gosecret
|
package gosecret
|
||||||
|
|
||||||
import (
|
import (
|
||||||
`strconv`
|
"strconv"
|
||||||
`strings`
|
"strings"
|
||||||
`time`
|
"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.
|
// 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)
|
label = variant.Value().(string)
|
||||||
|
i.LabelName = label
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user