2022-11-25 11:36:29 +01:00
|
|
|
package ppf
|
2022-11-23 20:33:07 +01:00
|
|
|
|
|
|
|
import (
|
|
|
|
"fyne.io/fyne/v2/widget"
|
|
|
|
)
|
|
|
|
|
|
|
|
var fieldAdder *widget.Button
|
|
|
|
|
|
|
|
func GetAdder() *widget.Button {
|
|
|
|
if fieldAdder == nil {
|
|
|
|
fieldAdder = widget.NewButton("Add Field", func() {
|
2022-11-24 21:49:10 +01:00
|
|
|
protocolEditor.AddFieldCreator(CreateFieldCreator())
|
2022-11-23 20:33:07 +01:00
|
|
|
})
|
|
|
|
}
|
|
|
|
return fieldAdder
|
|
|
|
}
|