summaryrefslogtreecommitdiff
path: root/windowRepos.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-13 20:47:40 -0600
committerJeff Carr <[email protected]>2025-02-13 20:47:40 -0600
commit43c98cb8198b1d402f8b43c7623ea15c8771b5d0 (patch)
tree67b251e9e3e56e3ec528fe1c3d479d5fc4ce43b5 /windowRepos.go
parentcb23b1f378ce4d757c9ea957a81a84de08d7171b (diff)
disable gocui disable()
Diffstat (limited to 'windowRepos.go')
-rw-r--r--windowRepos.go30
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()
}