disable gocui disable()
This commit is contained in:
parent
cb23b1f378
commit
43c98cb819
|
@ -24,10 +24,22 @@ type repoWindow struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *repoWindow) Hidden() bool {
|
func (r *repoWindow) Hidden() bool {
|
||||||
|
if r == nil {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
if r.win == nil {
|
||||||
|
return true
|
||||||
|
}
|
||||||
return r.win.Hidden()
|
return r.win.Hidden()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *repoWindow) Show() {
|
func (r *repoWindow) Show() {
|
||||||
|
if r == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if r.win == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
r.win.Show()
|
r.win.Show()
|
||||||
|
|
||||||
now := time.Now()
|
now := time.Now()
|
||||||
|
@ -64,14 +76,32 @@ func (r *repoWindow) Show() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *repoWindow) Hide() {
|
func (r *repoWindow) Hide() {
|
||||||
|
if r == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if r.win == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
r.win.Hide()
|
r.win.Hide()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *repoWindow) Disable() {
|
func (r *repoWindow) Disable() {
|
||||||
|
if r == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if r.box == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
r.box.Disable()
|
r.box.Disable()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *repoWindow) Enable() {
|
func (r *repoWindow) Enable() {
|
||||||
|
if r == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if r.box == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
r.box.Enable()
|
r.box.Enable()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue