summaryrefslogtreecommitdiff
path: root/new.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-23 15:20:54 -0600
committerJeff Carr <[email protected]>2024-01-23 15:20:54 -0600
commitdae15b593174ed82ac0f5f8c7250cb765a2b7f64 (patch)
tree8a826a328b34035805bb48218d12bb82a6697966 /new.go
parent2f4cba36dddaf1b0cfeabb875527b03bdb75036b (diff)
Scan() everything functions
Signed-off-by: Jeff Carr <[email protected]>
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()