disable gocui disable()
This commit is contained in:
parent
cb23b1f378
commit
43c98cb819
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue