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

@ -73,12 +73,12 @@ func selectFileSave(options []Option) (string, error) {
data := zenutil.File{
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)