Merge pull request #1270 from junderhill/master

Added post capture task to show in explorer #1265
This commit is contained in:
Jaex 2016-01-20 13:00:57 +02:00
commit 8afd3bf9c5
4 changed files with 21 additions and 3 deletions

View file

@ -196,6 +196,15 @@ internal class Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Show file in explorer.
/// </summary>
internal static string AfterCaptureTasks_ShowInExplorer {
get {
return ResourceManager.GetString("AfterCaptureTasks_ShowInExplorer", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Upload image to host.
/// </summary>

View file

@ -540,6 +540,9 @@ File size: {2:n0} / {3:n0} KB</value>
<data name="AfterCaptureTasks_SaveImageToFileWithDialog" xml:space="preserve">
<value>Save image to file as...</value>
</data>
<data name="AfterCaptureTasks_ShowInExplorer" xml:space="preserve">
<value>Show file in explorer</value>
</data>
<data name="AfterCaptureTasks_SaveThumbnailImageToFile" xml:space="preserve">
<value>Save thumbnail image to file</value>
</data>

View file

@ -101,9 +101,10 @@ public enum AfterCaptureTasks // Localized
PerformActions = 1 << 8,
CopyFileToClipboard = 1 << 9,
CopyFilePathToClipboard = 1 << 10,
ShowBeforeUploadWindow = 1 << 11,
UploadImageToHost = 1 << 12,
DeleteFile = 1 << 13
ShowInExplorer = 1 << 11,
ShowBeforeUploadWindow = 1 << 12,
UploadImageToHost = 1 << 13,
DeleteFile = 1 << 14
}
[Flags]

View file

@ -655,6 +655,11 @@ private void DoFileJobs()
{
ClipboardHelpers.CopyText(Info.FilePath);
}
if (Info.TaskSettings.AfterCaptureJob.HasFlag(AfterCaptureTasks.ShowInExplorer))
{
Helpers.OpenFolderWithFile(Info.FilePath);
}
}
}