fix gui freeze bug (work round)

This commit is contained in:
Aynakeya
2023-02-19 04:23:03 -08:00
parent 9d99a74faf
commit 6f2349e17b
106 changed files with 2051 additions and 1580 deletions

11
gui/component/check.go Normal file
View File

@@ -0,0 +1,11 @@
package component
import "fyne.io/fyne/v2/widget"
func NewCheckOneWayBinding(name string, val *bool, checked bool) *widget.Check {
check := widget.NewCheck(name, func(b bool) {
*val = b
})
check.SetChecked(checked)
return check
}