mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-09 03:38:12 +08:00
12 lines
238 B
Go
12 lines
238 B
Go
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
|
|
}
|