summaryrefslogtreecommitdiff
path: root/cmd/rescribe
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/rescribe')
-rw-r--r--cmd/rescribe/gui.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/cmd/rescribe/gui.go b/cmd/rescribe/gui.go
index d5a132f..8bbb3f5 100644
--- a/cmd/rescribe/gui.go
+++ b/cmd/rescribe/gui.go
@@ -386,8 +386,6 @@ func startGui(log log.Logger, cmd string, training string, tessdir string) error
fmt.Fprintf(os.Stderr, msg)
}
- cancel()
- ctx, cancel = context.WithCancel(context.Background())
progressBar.SetValue(0.0)
for _, v := range []fyne.Disableable{folderBtn, pdfBtn, gbookBtn, trainingOpts, gobtn} {
v.Enable()
@@ -403,8 +401,6 @@ func startGui(log log.Logger, cmd string, training string, tessdir string) error
dialog.ShowError(errors.New(msg), myWindow)
fmt.Fprintf(os.Stderr, msg)
- cancel()
- ctx, cancel = context.WithCancel(context.Background())
progressBar.SetValue(0.0)
for _, v := range []fyne.Disableable{folderBtn, pdfBtn, gbookBtn, trainingOpts, gobtn} {
v.Enable()
@@ -430,8 +426,6 @@ func startGui(log log.Logger, cmd string, training string, tessdir string) error
return
}
if err != nil {
- cancel()
- ctx, cancel = context.WithCancel(context.Background())
msg := fmt.Sprintf("Error during processing: %v\n", err)
dialog.ShowError(errors.New(msg), myWindow)
fmt.Fprintf(os.Stderr, msg)