summaryrefslogtreecommitdiff
path: root/new.go
diff options
context:
space:
mode:
Diffstat (limited to 'new.go')
-rw-r--r--new.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/new.go b/new.go
index c7c41d2..7b7db80 100644
--- a/new.go
+++ b/new.go
@@ -45,6 +45,7 @@ func NewRepoStatusWindow(path string) *RepoStatus {
}
rs := New(gui.TreeRoot(), path)
+ rs.draw(goSrcDir, realpath)
// save ~/go/src & the whole path strings
rs.goSrcPath.SetValue(goSrcDir)
@@ -61,17 +62,15 @@ func NewRepoStatusWindow(path string) *RepoStatus {
func New(p *gui.Node, path string) *RepoStatus {
rs := &RepoStatus{
- hidden: true,
- ready: false,
- parent: p,
- repopath: path,
+ hidden: true,
+ ready: false,
+ parent: p,
}
rs.tags = make(map[string]string)
rs.window = gadgets.NewBasicWindow(p, "GO Repo Details "+path)
rs.window.Horizontal()
rs.window.Make()
rs.ready = true
- rs.draw()
rs.window.Custom = func() {
// rs.hidden = true
rs.Hide()