2023-01-03 13:34:32 +01:00
|
|
|
package ui
|
2022-11-23 20:33:07 +01:00
|
|
|
|
|
|
|
import (
|
|
|
|
"fyne.io/fyne/v2/widget"
|
|
|
|
)
|
|
|
|
|
2023-01-03 15:44:52 +01:00
|
|
|
func GetAdder(pEd *ProtocolEditor) *widget.Button {
|
|
|
|
fieldAdder := widget.NewButton("Add Field", func() {
|
|
|
|
pEd.AddFieldCreator(CreateFieldEditor())
|
|
|
|
})
|
2022-11-23 20:33:07 +01:00
|
|
|
return fieldAdder
|
|
|
|
}
|