Fix invalid tab state when deselecting removed tab

This commit is contained in:
Drew DeVault 2019-07-26 14:37:45 -04:00
parent 6784ed3772
commit aabe3d9b3a
1 changed files with 1 additions and 1 deletions

View File

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