summaryrefslogtreecommitdiff
path: root/doGui.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-02 16:26:18 -0600
committerJeff Carr <[email protected]>2025-02-02 16:26:18 -0600
commitbf66727ab78bdadc3b9179f2a26453b0269800e2 (patch)
tree1e077a3ddc954d037f23dd3dfea886109f0c0e3d /doGui.go
parent6aafc842ae1aef39e8676ed8da2f8e79c5e48d09 (diff)
disable window while 'git checkout' is running
Diffstat (limited to 'doGui.go')
-rw-r--r--doGui.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/doGui.go b/doGui.go
index 10d579f..4b73077 100644
--- a/doGui.go
+++ b/doGui.go
@@ -106,6 +106,8 @@ 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() {
+ win.Disable()
+ defer win.Enable()
if reposWin != nil {
log.Info("reposWin == nil")
reposWin.Hide()