From e981b270ebbfe93e644b1e3869967d4ef469d15b Mon Sep 17 00:00:00 2001 From: TianYaX Date: Mon, 8 Aug 2022 12:17:47 +0800 Subject: [PATCH] osx: fix build (missing argument) Fixes #69. Closes #70. --- cocoa/dlg_darwin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocoa/dlg_darwin.go b/cocoa/dlg_darwin.go index cefc809..f59dd20 100644 --- a/cocoa/dlg_darwin.go +++ b/cocoa/dlg_darwin.go @@ -71,7 +71,7 @@ func DirDlg(title string, startDir string) (string, error) { return fileDlg(C.DIRDLG, title, nil, false, startDir, "") } -func fileDlg(mode int, title string, exts []string, relaxExt bool, startDir string) (string, error) { +func fileDlg(mode int, title string, exts []string, relaxExt bool, startDir, filename string) (string, error) { p := C.FileDlgParams{ mode: C.int(mode), nbuf: BUFSIZE,