Update show in explorer task to use existing helper method. Removed redundant helper method previously added.

This commit is contained in:
Jason Underhill 2016-01-20 09:27:37 +00:00
parent bfb9f86ac1
commit 7bf539b0df
2 changed files with 1 additions and 13 deletions

View file

@ -857,17 +857,5 @@ public static void PlayErrorSound(TaskSettings taskSettings)
Helpers.PlaySoundAsync(Resources.ErrorSound);
}
}
public static void ShowFileInWindowsExplorer(string filePath)
{
using (Process p = new Process())
{
if (!string.IsNullOrEmpty(filePath) && File.Exists(filePath))
{
p.StartInfo = new ProcessStartInfo("explorer.exe", string.Format(@"/select, ""{0}""", filePath));
p.Start();
}
}
}
}
}

View file

@ -658,7 +658,7 @@ private void DoFileJobs()
if (Info.TaskSettings.AfterCaptureJob.HasFlag(AfterCaptureTasks.ShowInExplorer))
{
TaskHelpers.ShowFileInWindowsExplorer(Info.FilePath);
Helpers.OpenFolderWithFile(Info.FilePath);
}
}
}