Skip to content

Commit

Permalink
Added an option to overrule the last file dialog location on
Browse files Browse the repository at this point in the history
  • Loading branch information
deepika-u authored and niraj-modi committed Feb 20, 2023
1 parent 43ee26a commit 53ae156
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,12 @@ public String open () {
char[] path = (filterPath.replace('/', '\\') + "\0").toCharArray();
if (COM.SHCreateItemFromParsingName(path, 0, COM.IID_IShellItem, ppv) == COM.S_OK) {
IShellItem psi = new IShellItem(ppv[0]);
fileDialog.SetDefaultFolder(psi);
if (filterPath.length() > 0) {
fileDialog.SetFolder(psi);
}
else {
fileDialog.SetDefaultFolder(psi);
}
psi.Release();
}
}
Expand Down

0 comments on commit 53ae156

Please sign in to comment.