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
Closing a docTabItem will not call OnSelected on the next tabItem if this one is located after the closed item.
Run the provided code, open 2 tabs (tab 1, tab 2) Selected tab 1, then close it Tab 2 selected should be called, but it is not.
No response
package main import ( "fmt" "fyne.io/fyne/v2/app" "fyne.io/fyne/v2/container" "fyne.io/fyne/v2/widget" ) func main() { a := app.New() w := a.NewWindow("") var i int docs := container.NewDocTabs() docs.CreateTab = func() *container.TabItem { i++ return container.NewTabItem(fmt.Sprintf("tab %03d", i), widget.NewLabel("Tab content")) } docs.OnSelected = func(ti *container.TabItem) { fmt.Println("Tab", ti.Text, "selected") } docs.OnUnselected = func(ti *container.TabItem) { fmt.Println("Tab", ti.Text, "unselected") } w.SetContent(docs) w.ShowAndRun() }
2.4.5
1.20.14
Windows 10
Another idea to be discussed: shouldn't be OnUnselected called when closing a tabItem?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Checklist
Describe the bug
Closing a docTabItem will not call OnSelected on the next tabItem if this one is located after the closed item.
How to reproduce
Run the provided code, open 2 tabs (tab 1, tab 2)
Selected tab 1, then close it
Tab 2 selected should be called, but it is not.
Screenshots
No response
Example code
Fyne version
2.4.5
Go compiler version
1.20.14
Operating system and version
Windows 10
Additional Information
Another idea to be discussed: shouldn't be OnUnselected called when closing a tabItem?
The text was updated successfully, but these errors were encountered: