summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/rescribe/gui.go4
-rw-r--r--cmd/rescribe/gui_test.go1
2 files changed, 3 insertions, 2 deletions
diff --git a/cmd/rescribe/gui.go b/cmd/rescribe/gui.go
index d1a992d..91cdb4d 100644
--- a/cmd/rescribe/gui.go
+++ b/cmd/rescribe/gui.go
@@ -78,7 +78,7 @@ func copyStdoutToChan() (chan rune, error) {
// copyStderrToChan creates a pipe to copy anything written
// to the file also to a rune channel.
// TODO: would be nice to merge this with copyStdoutToChan,
-// but a naive version using *os.File didn't work.
+// but a naive version using *os.File didn't work.
func copyStderrToChan() (chan rune, error) {
c := make(chan rune)
@@ -558,7 +558,7 @@ func startGui(log *log.Logger, cmd string, gbookcmd string, training string, tes
})
abortbtn.Disable()
- gobtn.OnTapped = func(){
+ gobtn.OnTapped = func() {
start(ctx, log, cmd, tessdir, gbookcmd, dir.Text, trainingOpts.Selected, myWindow, logarea, progressBar, abortbtn, !wipe.Checked, bigpdf.Checked, disableWidgets)
}
diff --git a/cmd/rescribe/gui_test.go b/cmd/rescribe/gui_test.go
index 3c90000..99a924f 100644
--- a/cmd/rescribe/gui_test.go
+++ b/cmd/rescribe/gui_test.go
@@ -8,6 +8,7 @@ import (
"fmt"
"strings"
"testing"
+
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/widget"
)