diff options
Diffstat (limited to 'combobox.go')
| -rw-r--r-- | combobox.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/combobox.go b/combobox.go index e018cce..9b38fa3 100644 --- a/combobox.go +++ b/combobox.go @@ -29,14 +29,14 @@ func NewCombobox(editable bool, items ...string) (c *Combobox) { // TODO Append, InsertBefore, Delete // Selection returns the current selection. -func (c *Combobox) Selection() (string, error) { +func (c *Combobox) Selection() string { c.lock.Lock() defer c.lock.Unlock() if c.created { return c.sysData.text() } - return "", nil + return "" } // TODO SelectedIndex |
