Filepicker bugfix for it not opening to current selected file/folder

This commit is contained in:
Justin Swanson 2019-11-30 15:45:39 -06:00
parent 1a5e052aef
commit 0dc0c11e9f
2 changed files with 4 additions and 4 deletions

View File

@ -794,7 +794,7 @@ namespace Wabbajack.Common
{
if (string.IsNullOrWhiteSpace(path))
{
return ErrorResponse.Fail("Path was empty.");
return ErrorResponse.Fail("Path is empty.");
}
try
{
@ -819,7 +819,7 @@ namespace Wabbajack.Common
{
if (string.IsNullOrWhiteSpace(path))
{
return ErrorResponse.Fail("Path was empty");
return ErrorResponse.Fail("Path is empty");
}
try
{

View File

@ -190,10 +190,10 @@ namespace Wabbajack
{
Title = PromptTitle,
IsFolderPicker = PathType == PathTypeOptions.Folder,
InitialDirectory = TargetPath,
InitialDirectory = dirPath,
AddToMostRecentlyUsedList = false,
AllowNonFileSystemItems = false,
DefaultDirectory = TargetPath,
DefaultDirectory = dirPath,
EnsureFileExists = true,
EnsurePathExists = true,
EnsureReadOnly = false,