diff options
Diffstat (limited to 'doGui.go')
| -rw-r--r-- | doGui.go | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -13,7 +13,6 @@ import ( "go.wit.com/gui" "go.wit.com/lib/gadgets" "go.wit.com/lib/gui/shell" - "go.wit.com/lib/protobuf/forgepb" "go.wit.com/lib/protobuf/gitpb" "go.wit.com/log" ) @@ -90,11 +89,11 @@ func doGui() { patchButton.SetLabel("not safe yet") return } - curpatches := forgepb.NewPatches() - curpatches.Filename = "/tmp/curpatches.pb" - curpatches.Load() - curpatches.Save() - patchesWin = makePatchesWin(curpatches) + if me.curpatches == nil { + log.Info("me.curpatches == nil") + return + } + patchesWin = makePatchesWin(me.curpatches) }) var pubWin *gadgets.GenericWindow |
