diff options
Diffstat (limited to 'windowControlBox.go')
| -rw-r--r-- | windowControlBox.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/windowControlBox.go b/windowControlBox.go index c5637a2..b8d88df 100644 --- a/windowControlBox.go +++ b/windowControlBox.go @@ -22,7 +22,7 @@ func makebasicWindow() *gadgets.BasicWindow { box1 := win.Box() // me.cBox = newControl(box1) - newControl(box1) + cbox := newControl(box1) vbox := box1.Box().Horizontal() group1 := vbox.NewGroup("controls").Horizontal() // Vertical() @@ -38,6 +38,9 @@ func makebasicWindow() *gadgets.BasicWindow { group1.NewButton("write control file", func() { writeDebianControlFile(me.repo) }) + group1.NewButton("update gui", func() { + updateControl(cbox) + }) group1.NewButton("Make .deb", func() { win.Disable() @@ -98,6 +101,9 @@ func newControl(parent *gui.Node) *controlBox { c.GoPath = gadgets.NewBasicEntry(c.grid, "GoPath") c.grid.NextRow() + c.Namespace = gadgets.NewBasicEntry(c.grid, "Namespace") + c.grid.NextRow() + c.URL = gadgets.NewBasicEntry(c.grid, "URL") c.grid.NextRow() @@ -120,5 +126,6 @@ func newControl(parent *gui.Node) *controlBox { } func updateControl(c *controlBox) { + c.Namespace.SetText(me.repo.Namespace) c.URL.SetText(me.repo.URL) } |
