diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -22,20 +22,22 @@ func main() { me.myGui.Default() me.autotypistWindow = me.myGui.NewWindow("autotypist: it types faster than you can.") - box := me.autotypistWindow.NewBox("bw hbox", true) + me.mainbox = me.autotypistWindow.NewBox("bw hbox", true) - vbox1 := box.NewVerticalBox("BOX1") + vbox1 := me.mainbox.NewVerticalBox("BOX1") globalDisplayOptions(vbox1) docsBox(vbox1) if debugger.ArgDebug() { debuggerBox(vbox1) } + // disable the interface while everything is scanned + me.Disable() - vbox2 := box.NewVerticalBox("BOX2") + vbox2 := me.mainbox.NewVerticalBox("BOX2") globalBuildOptions(vbox2) me.summary = submitPatchesBox(vbox2) - globalResetOptions(box) + globalResetOptions(me.mainbox) repolistWindow() @@ -46,6 +48,7 @@ func main() { repo.status.Update() repo.newScan() } + me.Enable() // scan repos every 30 seconds // check every second for the checkbox changing |
