Skip to content

Commit

Permalink
Fix #3050, update onTapped hooker for tabButton
Browse files Browse the repository at this point in the history
  • Loading branch information
d4x1 authored and andydotxyz committed Jun 9, 2022
1 parent c294049 commit 5f2e3a2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions container/apptabs.go
Expand Up @@ -341,9 +341,8 @@ func (r *appTabsRenderer) buildTabButtons(count int) *fyne.Container {
item := r.appTabs.Items[i]
button, ok := r.buttonCache[item]
if !ok {
index := i // capture
button = &tabButton{
onTapped: func() { r.appTabs.SelectIndex(index) },
onTapped: func() { r.appTabs.Select(item) },
}
r.buttonCache[item] = button
}
Expand Down

0 comments on commit 5f2e3a2

Please sign in to comment.