From db68150149ae3a876962195b50721c17a19c9b63 Mon Sep 17 00:00:00 2001
From: Nick White <git@njw.name>
Date: Mon, 10 Jan 2022 17:13:15 +0000
Subject: rescribe: Increase size of file & folder picker dialog windows

---
 cmd/rescribe/gui.go | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/cmd/rescribe/gui.go b/cmd/rescribe/gui.go
index 8b32051..dd39460 100644
--- a/cmd/rescribe/gui.go
+++ b/cmd/rescribe/gui.go
@@ -139,6 +139,7 @@ func trainingSelectOnChange(sel *widget.Select, parent fyne.Window) func(string)
 			sel.SetSelectedIndex(0)
 		}, parent)
 		d.SetFilter(storage.NewExtensionFileFilter([]string{".traineddata"}))
+		d.Resize(fyne.NewSize(740, 600))
 		d.Show()
 	}
 }
@@ -200,7 +201,7 @@ func startGui(log log.Logger, cmd string, training string, tessdir string) error
 	dirIcon := widget.NewIcon(theme.FolderIcon())
 
 	folderBtn := widget.NewButtonWithIcon("Choose folder", theme.FolderOpenIcon(), func() {
-		dialog.ShowFolderOpen(func(uri fyne.ListableURI, err error) {
+		d := dialog.NewFolderOpen(func(uri fyne.ListableURI, err error) {
 			if err == nil && uri != nil {
 				dir.SetText(uri.Path())
 				dirIcon.SetResource(theme.FolderIcon())
@@ -208,6 +209,8 @@ func startGui(log log.Logger, cmd string, training string, tessdir string) error
 				gobtn.Enable()
 			}
 		}, myWindow)
+		d.Resize(fyne.NewSize(740, 600))
+		d.Show()
 	})
 
 	pdfBtn := widget.NewButtonWithIcon("Choose PDF", theme.DocumentIcon(), func() {
@@ -221,6 +224,7 @@ func startGui(log log.Logger, cmd string, training string, tessdir string) error
 			}
 		}, myWindow)
 		d.SetFilter(storage.NewExtensionFileFilter([]string{".pdf"}))
+		d.Resize(fyne.NewSize(740, 600))
 		d.Show()
 	})
 
-- 
cgit v1.2.1-24-ge1ad