Making the initial stuff working, getting an installer, when running from VS.

This commit is contained in:
Krom, Robertus 2020-02-04 15:29:10 +01:00
parent a63bf734d4
commit 57e2044839
1023 changed files with 20896 additions and 19456 deletions

View file

@ -33,14 +33,12 @@ namespace GreenshotPlugin.Core
}
// Check if path is a file
if (File.Exists(path))
{
// Start the explorer process and select the file
using (var explorer = Process.Start("explorer.exe", $"/select,\"{path}\""))
{
explorer?.WaitForInputIdle(500);
return true;
}
}
{
// Start the explorer process and select the file
using var explorer = Process.Start("explorer.exe", $"/select,\"{path}\"");
explorer?.WaitForInputIdle(500);
return true;
}
}
catch (Exception ex)
{