From bf66727ab78bdadc3b9179f2a26453b0269800e2 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 2 Feb 2025 16:26:18 -0600 Subject: [PATCH] disable window while 'git checkout' is running --- doGui.go | 2 ++ 1 file changed, 2 insertions(+) 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()