From ecc7e3e9e49d58c9bc22784a96279c4d5ba814a2 Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 23 Nov 2021 11:01:17 +0000 Subject: gofmt, plus update documentation of recently changed pipeline.UploadImages --- cmd/lspipeline-ng/main.go | 2 +- cmd/rescribe/gui.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'cmd') diff --git a/cmd/lspipeline-ng/main.go b/cmd/lspipeline-ng/main.go index 632e6ca..bf6a4bd 100644 --- a/cmd/lspipeline-ng/main.go +++ b/cmd/lspipeline-ng/main.go @@ -170,7 +170,7 @@ func getBookStatus(conn LsPipeliner) (inprogress []string, done []string, err er for i, p := range prefixes { wg.Add(1) go getBookDetailsChan(conn, &wg, p, donec, inprogressc, errc) - if i % 30 == 0 { + if i%30 == 0 { wg.Wait() } } diff --git a/cmd/rescribe/gui.go b/cmd/rescribe/gui.go index 4944e42..654d875 100644 --- a/cmd/rescribe/gui.go +++ b/cmd/rescribe/gui.go @@ -12,7 +12,7 @@ import ( "os" "path/filepath" "strings" - + "fyne.io/fyne/v2" "fyne.io/fyne/v2/app" "fyne.io/fyne/v2/container" @@ -80,14 +80,14 @@ func startGui(log log.Logger, cmd string, training string, systess bool, tessdir if err == nil && uri != nil { dir.SetText(uri.Path()) } - }, myWindow)}) + }, myWindow) + }) progressBar := widget.NewProgressBar() logarea := widget.NewMultiLineEntry() logarea.Disable() - // TODO: have the button be pressed if enter is pressed gobtn = widget.NewButtonWithIcon("Process OCR", theme.UploadIcon(), func() { if dir.Text == "" { -- cgit v1.2.1-24-ge1ad