From ed2073111d0373228c7dfd95dca877bb9420a987 Mon Sep 17 00:00:00 2001 From: Nick White Date: Thu, 27 Oct 2022 16:36:31 +0100 Subject: Pass log around as pointer to fix go vet pointing out that this meant copying a sync.Mutex --- cmd/rescribe/gui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/rescribe/gui.go') diff --git a/cmd/rescribe/gui.go b/cmd/rescribe/gui.go index f03d66e..ef58fce 100644 --- a/cmd/rescribe/gui.go +++ b/cmd/rescribe/gui.go @@ -219,7 +219,7 @@ func formatProgressBarText(bar *widget.ProgressBar) func() string { } // startGui starts the gui process -func startGui(log log.Logger, cmd string, gbookcmd string, training string, tessdir string) error { +func startGui(log *log.Logger, cmd string, gbookcmd string, training string, tessdir string) error { myApp := app.New() myWindow := myApp.NewWindow("Rescribe OCR") -- cgit v1.2.1-24-ge1ad