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

View file

@ -94,7 +94,7 @@ func (tabs *Tabs) Replace(contentSrc Drawable, contentTarget Drawable, name stri
func (tabs *Tabs) Select(index int) { func (tabs *Tabs) Select(index int) {
if index >= len(tabs.Tabs) { if index >= len(tabs.Tabs) {
return index = len(tabs.Tabs) - 1
} }
if tabs.Selected != index { if tabs.Selected != index {