mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-13 13:38:16 +08:00
fix gui freeze bug (work round)
This commit is contained in:
11
gui/component/check.go
Normal file
11
gui/component/check.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user