summaryrefslogtreecommitdiff
path: root/doGui.go
diff options
context:
space:
mode:
Diffstat (limited to 'doGui.go')
-rw-r--r--doGui.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/doGui.go b/doGui.go
index 943dd62..a42ef61 100644
--- a/doGui.go
+++ b/doGui.go
@@ -228,6 +228,15 @@ func drawWindow(win *gadgets.GenericWindow) {
reposWin = makeReposWin()
})
+ var patches *stdPatchsetTableWin
+ gridM.NewButton("New Patch Window", func() {
+ if patches != nil {
+ patches.Toggle()
+ return
+ }
+ patches = makePatchsetsWin()
+ })
+
// set the initial button state based on the last
// forge mode the user saved in the config file
switch me.forge.Config.Mode {