package ui import ( "fyne.io/fyne/v2/widget" ) func GetAdder(pEd *ProtocolEditor) *widget.Button { fieldAdder := widget.NewButton("Add Field", func() { pEd.AddFieldCreator(CreateFieldEditor()) }) return fieldAdder }