Merge pull request #680 from erri120/issue-678

Added /select param when opening the log folder or finished modlist
This commit is contained in:
Timothy Baldridge 2020-04-04 15:36:38 -06:00 committed by GitHub
commit 93a62393da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -233,14 +233,14 @@ namespace Wabbajack
{ {
if (Completed?.Failed ?? false) if (Completed?.Failed ?? false)
{ {
Process.Start("explorer.exe", Utils.LogFolder); Process.Start("explorer.exe", $"/select,\"{Utils.LogFolder}\"");
} }
else else
{ {
Process.Start("explorer.exe", Process.Start("explorer.exe",
string.IsNullOrWhiteSpace(OutputLocation.TargetPath) string.IsNullOrWhiteSpace(OutputLocation.TargetPath)
? Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location) ? $"/select,\"{Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location)}\""
: OutputLocation.TargetPath); : $"/select,\"{OutputLocation.TargetPath}\"");
} }
}); });