don't track hidden in here

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-02-11 18:56:55 -06:00
parent b694fc2fe2
commit 2b172338f6
3 changed files with 1 additions and 8 deletions

View File

@ -21,8 +21,6 @@ func (rs *RepoStatus) Draw() {
}
log.Log(CHANGE, "Draw() window ready =", rs.ready)
rs.window.TestDraw()
// rs.window.Draw()
rs.ready = true
}
func (rs *RepoStatus) Show() {
@ -31,7 +29,6 @@ func (rs *RepoStatus) Show() {
}
log.Log(CHANGE, "Show() window ready =", rs.ready)
rs.window.Show()
rs.hidden = false
}
func (rs *RepoStatus) Hide() {
@ -40,7 +37,6 @@ func (rs *RepoStatus) Hide() {
}
log.Log(CHANGE, "Hide() window ready =", rs.ready)
rs.window.Hide()
rs.hidden = true
}
func (rs *RepoStatus) Toggle() {
@ -48,7 +44,7 @@ func (rs *RepoStatus) Toggle() {
return
}
log.Log(CHANGE, "Toggle() window ready =", rs.ready)
if rs.hidden {
if rs.window.Hidden() {
rs.Show()
} else {
rs.Hide()

2
new.go
View File

@ -71,7 +71,6 @@ func NewRepoStatusWindow(path string) *RepoStatus {
func New(p *gui.Node, path string) *RepoStatus {
rs := &RepoStatus{
hidden: true,
ready: false,
parent: p,
}
@ -81,7 +80,6 @@ func New(p *gui.Node, path string) *RepoStatus {
rs.window.Make()
rs.ready = true
rs.window.Custom = func() {
// rs.hidden = true
rs.Hide()
log.Warn("repostatus user closed the window()")
}

View File

@ -7,7 +7,6 @@ import (
type RepoStatus struct {
ready bool
hidden bool
changed bool
// lasttagrev string