diff options
| author | Jeff Carr <[email protected]> | 2025-02-13 20:47:40 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-13 20:47:40 -0600 |
| commit | 43c98cb8198b1d402f8b43c7623ea15c8771b5d0 (patch) | |
| tree | 67b251e9e3e56e3ec528fe1c3d479d5fc4ce43b5 /windowRepos.go | |
| parent | cb23b1f378ce4d757c9ea957a81a84de08d7171b (diff) | |
disable gocui disable()
Diffstat (limited to 'windowRepos.go')
| -rw-r--r-- | windowRepos.go | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/windowRepos.go b/windowRepos.go index 1360ba8..dbbeba6 100644 --- a/windowRepos.go +++ b/windowRepos.go @@ -24,10 +24,22 @@ type repoWindow struct { } func (r *repoWindow) Hidden() bool { + if r == nil { + return true + } + if r.win == nil { + return true + } return r.win.Hidden() } func (r *repoWindow) Show() { + if r == nil { + return + } + if r.win == nil { + return + } r.win.Show() now := time.Now() @@ -64,14 +76,32 @@ func (r *repoWindow) Show() { } func (r *repoWindow) Hide() { + if r == nil { + return + } + if r.win == nil { + return + } r.win.Hide() } func (r *repoWindow) Disable() { + if r == nil { + return + } + if r.box == nil { + return + } r.box.Disable() } func (r *repoWindow) Enable() { + if r == nil { + return + } + if r.box == nil { + return + } r.box.Enable() } |
