diff options
Diffstat (limited to 'doGui.go')
| -rw-r--r-- | doGui.go | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -175,11 +175,16 @@ func drawWindow(win *gadgets.GenericWindow) { }) var patchesWin *stdPatchTableWin - gridM.NewButton("Your patches", func() { + var patchButton *gui.Node + patchButton = gridM.NewButton("Your patches", func() { if patchesWin != nil { patchesWin.Toggle() return } + if !isPatchingSafe() { + patchButton.SetLabel("not safe yet") + return + } // patchesWin = makePatchesWin(me.forge.Patchsets) notdone := new(forgepb.Patches) |
