Decided to keep OFN_NODEREFERENCELINKS; the Mac backend does so.
This commit is contained in:
parent
43f4b843aa
commit
52bb5ee5df
|
@ -5,6 +5,7 @@ package ui
|
|||
// OpenFile opens a dialog box that asks the user to choose a file.
|
||||
// It returns the selected filename, or an empty string if no file was chosen.
|
||||
// All events stop while OpenFile is executing. (TODO move to doc.go)
|
||||
// If possible on a given system, OpenFile() will not dereference links; it will return the link file itself.
|
||||
func OpenFile() (filename string) {
|
||||
return openFile()
|
||||
}
|
||||
|
|
|
@ -38,7 +38,6 @@ WCHAR *openFile(void)
|
|||
ofn.lpstrInitialDir = NULL; // let system decide
|
||||
ofn.lpstrTitle = NULL; // let system decide
|
||||
// TODO OFN_SHAREAWARE?
|
||||
// TODO remove OFN_NODEREFERENCELINKS? or does no filters ensure that anyway?
|
||||
ofn.Flags = OFN_ENABLEHOOK | OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_FORCESHOWHIDDEN | OFN_HIDEREADONLY | OFN_LONGNAMES | OFN_NOCHANGEDIR | OFN_NODEREFERENCELINKS | OFN_NOTESTFILECREATE | OFN_PATHMUSTEXIST;
|
||||
ofn.lpfnHook = openSaveFileHook;
|
||||
SendMessageW(msgwin, msgBeginModal, 0, 0);
|
||||
|
|
Loading…
Reference in New Issue