diff options
Diffstat (limited to 'cmd/rescribe/gui.go')
-rw-r--r-- | cmd/rescribe/gui.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/rescribe/gui.go b/cmd/rescribe/gui.go index bdcc16c..92d8f5b 100644 --- a/cmd/rescribe/gui.go +++ b/cmd/rescribe/gui.go @@ -423,7 +423,7 @@ func startGui(log log.Logger, cmd string, training string, tessdir string) error } err = startProcess(ctx, log, cmd, bookdir, bookname, training, savedir, tessdir) - if strings.HasSuffix(err.Error(), "context canceled") { + if err != nil && strings.HasSuffix(err.Error(), "context canceled") { progressBar.SetValue(0.0) return } |