diff options
| author | Jeff Carr <[email protected]> | 2025-10-11 09:49:41 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-11 09:49:41 -0500 |
| commit | c8999c2213d8c18783eb99136ac1dd312a83bdb0 (patch) | |
| tree | 31ece68f6cb73525f853925b1e3e5500214bed46 /doGui.go | |
| parent | c2be17289a9b80bf8fbe365c364eeaa7c87a65f0 (diff) | |
cleanup patches argv
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 |
