disable gocui disable()

This commit is contained in:
Jeff Carr 2025-02-13 20:47:40 -06:00
parent cb23b1f378
commit 43c98cb819
1 changed files with 30 additions and 0 deletions

View File

@ -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()
}