diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/lspipeline-ng/main.go | 2 | ||||
-rw-r--r-- | cmd/rescribe/gui.go | 6 |
2 files changed, 4 insertions, 4 deletions
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 == "" { |