From 4bfc22f97fc081275568af20d5cfd84c71d516cd Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 20 Dec 2021 15:13:53 +0000 Subject: rescribe: Ensure temporary tesseract data is only removed when the program ends, so multiple books can be processed by the gui one after the other --- cmd/rescribe/gui.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/rescribe/gui.go') diff --git a/cmd/rescribe/gui.go b/cmd/rescribe/gui.go index ce142fc..a532f99 100644 --- a/cmd/rescribe/gui.go +++ b/cmd/rescribe/gui.go @@ -95,7 +95,7 @@ func copyStderrToChan() (chan rune, error) { } // startGui starts the gui process -func startGui(log log.Logger, cmd string, training string, systess bool, tessdir string) error { +func startGui(log log.Logger, cmd string, training string, tessdir string) error { myApp := app.New() myWindow := myApp.NewWindow("Rescribe OCR") @@ -182,7 +182,7 @@ func startGui(log log.Logger, cmd string, training string, systess bool, tessdir } }() - err = startProcess(log, cmd, dir.Text, filepath.Base(dir.Text), training, systess, dir.Text, tessdir) + err = startProcess(log, cmd, dir.Text, filepath.Base(dir.Text), training, dir.Text, tessdir) if err != nil { // add a newline before this printing as another message from stdout // or stderr may well be half way through printing -- cgit v1.2.1-24-ge1ad