Added /select param when opening the log folder or finished modlist

This commit is contained in:
erri120 2020-04-04 20:47:07 +02:00
parent 89cb018164
commit f1f0659012
No known key found for this signature in database
GPG Key ID: A8C0A18D8D4D3135

View File

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