summaryrefslogtreecommitdiff
path: root/new.go
diff options
context:
space:
mode:
Diffstat (limited to 'new.go')
-rw-r--r--new.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/new.go b/new.go
index 3def09c..397e7b9 100644
--- a/new.go
+++ b/new.go
@@ -1,6 +1,7 @@
package repostatus
import (
+ "go.wit.com/log"
"go.wit.com/gui/gui"
"go.wit.com/gui/gadgets"
)
@@ -18,5 +19,9 @@ func New(p *gui.Node, path string) *RepoStatus {
rs.window.Make()
rs.ready = true
rs.draw()
+ rs.window.Custom = func() {
+ rs.hidden = true
+ log.Warn("repostatus user closed the window()")
+ }
return rs
}