mirror of
https://github.com/greenshot/greenshot
synced 2025-07-15 01:23:47 -07:00
Don't instantiate the IAppVisibility if < Windows 8, so there is one exception less in the logs.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2307 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
67db97b13f
commit
502fe44270
1 changed files with 4 additions and 1 deletions
|
@ -172,7 +172,10 @@ namespace GreenshotPlugin.Core {
|
|||
|
||||
static WindowDetails() {
|
||||
try {
|
||||
appVisibility = COMWrapper.CreateInstance<IAppVisibility>();
|
||||
// Only try to instanciate when Windows 8 or later.
|
||||
if (Environment.OSVersion.Version.Major >= 6 && Environment.OSVersion.Version.Minor >= 2) {
|
||||
appVisibility = COMWrapper.CreateInstance<IAppVisibility>();
|
||||
}
|
||||
} catch {}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue