Improve hidden files on macOS.

This commit is contained in:
Nuno Cruces 2021-02-18 13:10:54 +00:00
parent c73af92d4e
commit 2a38a8892c

View file

@ -72,13 +72,13 @@ func selectFileSave(options []Option) (string, error) {
opts := applyOptions(options)
data := zenutil.File{
Prompt: opts.title,
Prompt: opts.title,
Invisibles: opts.showHidden,
}
if opts.directory {
data.Operation = "chooseFolder"
} else {
data.Operation = "chooseFileName"
data.Type = initFilters(opts.fileFilters)
}
data.Location, data.Name = splitDirAndName(opts.filename)