summaryrefslogtreecommitdiff
path: root/listWindow.go
diff options
context:
space:
mode:
Diffstat (limited to 'listWindow.go')
-rw-r--r--listWindow.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/listWindow.go b/listWindow.go
index 7aba7d7..091c9fa 100644
--- a/listWindow.go
+++ b/listWindow.go
@@ -41,10 +41,10 @@ type section struct {
witRepos []*witRepo
}
-func listWindow() {
+func listWindow() *gadgets.BasicWindow {
if lw != nil {
lw.Toggle()
- return
+ return lw
}
lw = gadgets.NewBasicWindow(me.myGui, "go.wit.com repositories")
lw.Custom = func() {
@@ -89,6 +89,7 @@ func listWindow() {
}
}
// lw.Toggle()
+ return lw
}
func downloadRepo(path string) bool {