ppforge/internal/ui/fieldadd.go

17 lines
277 B
Go

package ui
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
}