Skip to content

Commit

Permalink
JBR-8156 restoring WSL visibility in the folder picker mode
Browse files Browse the repository at this point in the history
  • Loading branch information
trespasserw authored and mkartashev committed Jan 22, 2025
1 parent c1506b5 commit fb11e2e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -902,12 +902,13 @@ AwtFileDialog::Show(void *p)

DWORD dwFlags;
OLE_HRT(pfd->GetOptions(&dwFlags));
dwFlags |= FOS_FORCEFILESYSTEM;
if (multipleMode == JNI_TRUE) {
dwFlags |= FOS_ALLOWMULTISELECT;
}
if (folderPickerMode) {
dwFlags |= FOS_PICKFOLDERS;
} else {
dwFlags |= FOS_FORCEFILESYSTEM; // Windows bug: in the folder picker mode, it prevents the "Linux" node from appearing
}
OLE_HRT(pfd->SetOptions(dwFlags));

Expand Down

0 comments on commit fb11e2e

Please sign in to comment.