Skip to content

Commit 309b7f2

Browse files
committed
windows: hide read-only option from open file dialog
From #83
1 parent a252228 commit 309b7f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

portable-file-dialogs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,6 +1184,7 @@ inline internal::file_dialog::file_dialog(type in_type,
11841184
if (in_type == type::open)
11851185
ofn.Flags |= OFN_FILEMUSTEXIST;
11861186
ofn.Flags |= OFN_PATHMUSTEXIST;
1187+
ofn.Flags |= OFN_HIDEREADONLY;
11871188

11881189
dll::proc<BOOL WINAPI (LPOPENFILENAMEW)> get_open_file_name(comdlg32, "GetOpenFileNameW");
11891190
if (get_open_file_name(&ofn) == 0)

0 commit comments

Comments
 (0)