diff options
| author | Jeff Carr <[email protected]> | 2024-01-14 22:14:02 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-14 22:14:02 -0600 |
| commit | de5f84717fd2bf43e627888abec2c5850b8ada8e (patch) | |
| tree | 57af19884803300f8611ae6d43041a4f6d761deb | |
| parent | 784536b18a74f6869471e2d89744e35e2f2c3704 (diff) | |
Custom() detects window close
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | new.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 } |
