We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upon disabling the AppTabs and then re-enable it, the OnSelected event keeps firing.
Run the code below and click on ony of the tabs
No response
package main import ( "strconv" "time" "fyne.io/fyne/v2" "fyne.io/fyne/v2/app" "fyne.io/fyne/v2/container" "fyne.io/fyne/v2/layout" ) func main() { myApp := app.New() myWindow := myApp.NewWindow("AppTabs Example") tabs := []*container.TabItem{} for i := 0; i < 5; i++ { tabs = append(tabs, container.NewTabItem("tab "+strconv.Itoa(i), layout.NewSpacer())) } appTabs := container.NewAppTabs(tabs...) appTabs.OnSelected = func(tab *container.TabItem) { for _, v := range appTabs.Items { appTabs.DisableItem(v) } println(tab.Text) time.Sleep(1 * time.Second) for _, v := range appTabs.Items { appTabs.EnableItem(v) } } myWindow.SetContent(appTabs) myWindow.Resize(fyne.NewSize(400, 300)) myWindow.ShowAndRun() }
Clicking on any of the tabs will output something like:
tab 4 tab 4 tab 3 tab 4 tab 2 tab 4 tab 3 tab 4 tab 2 tab 4 tab 3 tab 4 tab 2 tab 4 tab 3 tab 4 tab 2 tab 4 tab 3 tab 4 tab 2 tab 4 tab 3 ...
2.5.2
1.23.2
Windows 11
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Checklist
Describe the bug
Upon disabling the AppTabs and then re-enable it, the OnSelected event keeps firing.
How to reproduce
Run the code below and click on ony of the tabs
Screenshots
No response
Example code
Clicking on any of the tabs will output something like:
Fyne version
2.5.2
Go compiler version
1.23.2
Operating system and version
Windows 11
Additional Information
No response
The text was updated successfully, but these errors were encountered: