Reorder.
This commit is contained in:
parent
903df781a8
commit
1e77b878b5
1 changed files with 3 additions and 3 deletions
|
@ -130,13 +130,13 @@ func selectFileMultiple(opts options) ([]string, error) {
|
|||
}
|
||||
|
||||
func selectFileSave(opts options) (string, error) {
|
||||
if opts.directory {
|
||||
return selectFile(opts)
|
||||
}
|
||||
name, shown, err := fileSaveDialog(opts)
|
||||
if shown || opts.ctx != nil && opts.ctx.Err() != nil {
|
||||
return name, err
|
||||
}
|
||||
if opts.directory {
|
||||
return selectFile(opts)
|
||||
}
|
||||
|
||||
var args win.OPENFILENAME
|
||||
args.StructSize = uint32(unsafe.Sizeof(args))
|
||||
|
|
Loading…
Reference in a new issue