mirror of https://github.com/anoshenko/rui.git
Merge pull request #9 from anoshenko/bug-fixes/list-checked-items
This commit is contained in:
commit
81e826adf7
|
@ -1115,7 +1115,7 @@ func GetListViewCheckedItems(view View, subviewID ...string) []int {
|
|||
return checkedItems
|
||||
|
||||
case SingleCheckbox:
|
||||
if len(checkedItems) > 1 {
|
||||
if len(checkedItems) > 0 {
|
||||
return []int{checkedItems[0]}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue