summaryrefslogtreecommitdiff
path: root/cmd/rescribe/gui.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2021-12-20 15:13:53 +0000
committerNick White <git@njw.name>2021-12-20 15:13:53 +0000
commit4bfc22f97fc081275568af20d5cfd84c71d516cd (patch)
treeb767bd91000492c68a424778ec0f0c69cdabd47d /cmd/rescribe/gui.go
parent6ea3243f252bc4944c566a457da227a65639ecc7 (diff)
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
Diffstat (limited to 'cmd/rescribe/gui.go')
-rw-r--r--cmd/rescribe/gui.go4
1 files changed, 2 insertions, 2 deletions
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