diff options
| author | Jeff Carr <[email protected]> | 2025-01-30 10:10:02 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-30 10:10:02 -0600 |
| commit | 0b6419d1a5f2f3fd8b6dc4716cf36cc3ac121dcb (patch) | |
| tree | dd92b004d6651699123b98107506aa63b51fc8fd /doGui.go | |
| parent | bb865d4a49ec0458cb935bd27c1346f5a99b96e9 (diff) | |
try this. maybe
Diffstat (limited to 'doGui.go')
| -rw-r--r-- | doGui.go | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -54,6 +54,8 @@ func doGui() { } func drawWindow(win *gadgets.BasicWindow) { + var reposWin *repoWindow // this is the handle to the repo window + box := win.Box() vbox := box.NewVerticalBox("BOX2") @@ -94,6 +96,9 @@ func drawWindow(win *gadgets.BasicWindow) { // you can merge everything into the devel branch and make sure it actually // works. Then, when that is good, merge and version everything in master me.setBranchB = grid.NewButton("git checkout", func() { + if reposWin != nil { + reposWin.Hide() + } targetName := me.newBranch.String() log.Warn("setting all branches to", targetName) if targetName == "devel" { @@ -123,8 +128,6 @@ func drawWindow(win *gadgets.BasicWindow) { me.autoCreateBranches = grid.NewCheckbox("auto create branches").SetChecked(true) grid.NextRow() - var reposWin *repoWindow - grid.NewButton("Repo Window", func() { if reposWin != nil { if reposWin.Hidden() { |
