mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
Update show in explorer task to use existing helper method. Removed redundant helper method previously added.
This commit is contained in:
parent
bfb9f86ac1
commit
7bf539b0df
2 changed files with 1 additions and 13 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -658,7 +658,7 @@ private void DoFileJobs()
|
|||
|
||||
if (Info.TaskSettings.AfterCaptureJob.HasFlag(AfterCaptureTasks.ShowInExplorer))
|
||||
{
|
||||
TaskHelpers.ShowFileInWindowsExplorer(Info.FilePath);
|
||||
Helpers.OpenFolderWithFile(Info.FilePath);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue