summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-16 11:14:30 -0600
committerJeff Carr <[email protected]>2024-01-16 11:14:30 -0600
commit0dd8cd9deaf2e8b1ac2537dfcefd76ac484e35e8 (patch)
tree100d530a86a72c47b3db210488aab0e7e11adb3a /main.go
parenta85b161d64bffec1cc241cf1e961a28251b2b570 (diff)
add Global Display Options
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.go b/main.go
index 9afca5d..429230b 100644
--- a/main.go
+++ b/main.go
@@ -21,6 +21,8 @@ func main() {
myGui.Default()
repoworld()
+ log.Sleep(.3)
+ hidePerfect()
gui.Watchdog()
}
@@ -47,7 +49,7 @@ func addRepo(grid *gui.Node, path string, master string, devel string, user stri
newRepo.userVersion = grid.NewLabel("").SetProgName("userVersion")
newRepo.dirtyLabel = grid.NewLabel("")
- grid.NewButton("Show()", func () {
+ newRepo.showButton = grid.NewButton("Show()", func () {
if newRepo.status == nil {
log.Warn("status window doesn't exist")
return
@@ -64,6 +66,7 @@ func addRepo(grid *gui.Node, path string, master string, devel string, user stri
newRepo.status.SetMasterName(master)
newRepo.status.SetDevelName(devel)
newRepo.status.SetUserName(user)
+ newRepo.hidden = false
newRepo.status.Update()
newRepo.newScan()
allrepos = append(allrepos, newRepo)
@@ -104,6 +107,7 @@ func repoworld() {
box2 := reposwin.Box().NewBox("bw vbox", false)
+ globalDisplayOptions(box2)
globalBuildOptions(box2)
globalResetOptions(box2)