disable window while 'git checkout' is running

This commit is contained in:
Jeff Carr 2025-02-02 16:26:18 -06:00
parent 6aafc842ae
commit bf66727ab7
1 changed files with 2 additions and 0 deletions

View File

@ -106,6 +106,8 @@ func drawWindow(win *gadgets.BasicWindow) {
// you can merge everything into the devel branch and make sure it actually // 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 // works. Then, when that is good, merge and version everything in master
me.setBranchB = grid.NewButton("git checkout", func() { me.setBranchB = grid.NewButton("git checkout", func() {
win.Disable()
defer win.Enable()
if reposWin != nil { if reposWin != nil {
log.Info("reposWin == nil") log.Info("reposWin == nil")
reposWin.Hide() reposWin.Hide()