Fix invalid tab state when deselecting removed tab
This commit is contained in:
parent
6784ed3772
commit
aabe3d9b3a
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ func (tabs *Tabs) Replace(contentSrc Drawable, contentTarget Drawable, name stri
|
|||
|
||||
func (tabs *Tabs) Select(index int) {
|
||||
if index >= len(tabs.Tabs) {
|
||||
return
|
||||
index = len(tabs.Tabs) - 1
|
||||
}
|
||||
|
||||
if tabs.Selected != index {
|
||||
|
|
Loading…
Reference in a new issue