Skip to content

v2.4.0-rc2 Frequent clicking on table may cause the program to not respond #4210

Closed
@qiwentaidi

Description

Checklist

  • I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
  • This issue only relates to a single bug. I will open new issues for any other problems.

Describe the bug

Frequent clicking on table may cause the program to not respond

How to reproduce

run and frequent clicks table widget

Screenshots

image

Example code

package main

import (
	"fyne.io/fyne/v2"
	"fyne.io/fyne/v2/app"
	"fyne.io/fyne/v2/widget"
)

var (
	ScanResult = [][]string{{"1", "2", "3"}, {"1", "2", "3"}, {"1", "2", "3"}}
)

func main() {
	a := app.New()
	w := a.NewWindow("Table Test")
	t := widget.NewTableWithHeaders(func() (int, int) {
		return 3, 3
	}, func() fyne.CanvasObject {
		return widget.NewLabel("")
	}, func(id widget.TableCellID, o fyne.CanvasObject) {
		if lb, ok := o.(*widget.Label); ok {
			lb.SetText(ScanResult[id.Row][id.Col])
		}
	})
	//t.ShowHeaderRow = true
	w.SetContent(t)
	w.Resize(fyne.NewSize(300, 300))
	w.ShowAndRun()
}

Fyne version

v2.4.0-rc2

Go compiler version

go1.20.1 windows/amd64

Operating system and version

win11

Additional Information

v2.4.0-rc2 widget.table Updated a lot of content,This bug has not occurred before version v2.3.5

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    unverifiedA bug that has been reported but not verified

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions