summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-10 18:18:01 -0600
committerJeff Carr <[email protected]>2024-01-10 18:18:01 -0600
commit1c02e4d05fa5fb20ba3d38710da141f7d82d701f (patch)
treec0a0c56ac737239c11feb3b7cb9c56f641448d8f /common.go
parent54d8059a743f2ec747cf8c8506ab660eee45f437 (diff)
things are now almost automatic
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'common.go')
-rw-r--r--common.go94
1 files changed, 47 insertions, 47 deletions
diff --git a/common.go b/common.go
index c70356e..bde96ba 100644
--- a/common.go
+++ b/common.go
@@ -7,79 +7,79 @@ import (
// reports externally if something has changed
// since the last time it was asked about it
-func (ls *RepoStatus) Changed() bool {
- if ! ls.Ready() {return false}
- if ls.changed {
- ls.changed = false
+func (rs *RepoStatus) Changed() bool {
+ if ! rs.Ready() {return false}
+ if rs.changed {
+ rs.changed = false
return true
}
return false
}
-func (ls *RepoStatus) Make() {
- if ! ls.Ready() {return}
- log.Log(CHANGE, "Make() window ready =", ls.ready)
- ls.window.Make()
- ls.ready = true
+func (rs *RepoStatus) Make() {
+ if ! rs.Ready() {return}
+ log.Log(CHANGE, "Make() window ready =", rs.ready)
+ rs.window.Make()
+ rs.ready = true
}
-func (ls *RepoStatus) Draw() {
- if ! ls.Ready() {return}
- log.Log(CHANGE, "Draw() window ready =", ls.ready)
- ls.window.Draw()
- ls.ready = true
+func (rs *RepoStatus) Draw() {
+ if ! rs.Ready() {return}
+ log.Log(CHANGE, "Draw() window ready =", rs.ready)
+ rs.window.Draw()
+ rs.ready = true
}
-func (ls *RepoStatus) Draw2() {
- if ! ls.Ready() {return}
- log.Log(CHANGE, "draw(ls) ready =", ls.ready)
- draw(ls)
+func (rs *RepoStatus) Draw2() {
+ if ! rs.Ready() {return}
+ log.Log(CHANGE, "draw(rs) ready =", rs.ready)
+ draw(rs)
}
-func (ls *RepoStatus) Show() {
- if ! ls.Ready() {return}
- log.Log(CHANGE, "Show() window ready =", ls.ready)
- ls.window.Show()
- ls.hidden = false
+func (rs *RepoStatus) Show() {
+ if ! rs.Ready() {return}
+ log.Log(CHANGE, "Show() window ready =", rs.ready)
+ rs.window.Show()
+ rs.hidden = false
}
-func (ls *RepoStatus) Hide() {
- if ! ls.Ready() {return}
- log.Log(CHANGE, "Hide() window ready =", ls.ready)
- ls.window.Hide()
- ls.hidden = true
+func (rs *RepoStatus) Hide() {
+ if ! rs.Ready() {return}
+ log.Log(CHANGE, "Hide() window ready =", rs.ready)
+ rs.window.Hide()
+ rs.hidden = true
}
-func (ls *RepoStatus) Toggle() {
- if ! ls.Ready() {return}
- log.Log(CHANGE, "Toggle() window ready =", ls.ready)
- if ls.hidden {
- ls.Show()
+func (rs *RepoStatus) Toggle() {
+ if ! rs.Ready() {return}
+ log.Log(CHANGE, "Toggle() window ready =", rs.ready)
+ if rs.hidden {
+ rs.Show()
} else {
- ls.Hide()
+ rs.Hide()
}
}
-func (ls *RepoStatus) Ready() bool {
- log.Log(SPEW, "Ready() maybe not ready? ls =", ls)
- if ls == nil {return false}
- if ls.window == nil {return false}
- return ls.ready
+func (rs *RepoStatus) Ready() bool {
+ log.Log(SPEW, "Ready() maybe not ready? rs =", rs)
+ if rs == nil {return false}
+ if rs.window == nil {return false}
+ return rs.ready
}
-func (ls *RepoStatus) Initialized() bool {
+func (rs *RepoStatus) Initialized() bool {
log.Log(CHANGE, "checking Initialized()")
- if ls == nil {return false}
- if ls.parent == nil {return false}
+ if rs == nil {return false}
+ if rs.parent == nil {return false}
return true
}
-func (ls *RepoStatus) SetParent(p *gui.Node) {
+func (rs *RepoStatus) SetParent(p *gui.Node) {
log.Log(CHANGE, "Attempting SetParent")
- if ls == nil {return}
- if ls.parent == nil {
+ if rs == nil {return}
+ if rs.parent == nil {
log.Log(CHANGE, "SetParent =", p)
- ls.parent = p
+ rs.parent = p
return
} else {
- log.Log(CHANGE, "SetParent was already set to =", ls.parent)
+ log.Log(CHANGE, "SetParent was already set to =", rs.parent)
}
}