package ppf import ( "fyne.io/fyne/v2/widget" ) var fieldAdder *widget.Button func GetAdder() *widget.Button { if fieldAdder == nil { fieldAdder = widget.NewButton("Add Field", func() { protocolEditor.AddFieldCreator(CreateFieldCreator()) }) } return fieldAdder }