mirror of
https://github.com/greenshot/greenshot
synced 2025-07-13 00:23:54 -07:00
Code formatting (indents etc.) to get it consistent, simplify it for contributors.
This commit is contained in:
parent
726644de99
commit
e8c0b307ee
435 changed files with 46647 additions and 39014 deletions
|
@ -50,22 +50,26 @@ namespace GreenshotPlugin.Core
|
|||
|
||||
if (key != null)
|
||||
{
|
||||
result = (string)key.GetValue(value);
|
||||
result = (string) key.GetValue(value);
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(result))
|
||||
{
|
||||
result = defaultValue;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
using var registryKey64 = RegistryKey.OpenBaseKey(registryHive, RegistryView.Registry64);
|
||||
// Logic for 64 bit Windows, is trying the key which is 64 bit
|
||||
using (var key = registryKey64.OpenSubKey($@"SOFTWARE\{keyName}", false))
|
||||
{
|
||||
if (key != null)
|
||||
{
|
||||
result = (string)key.GetValue(value);
|
||||
result = (string) key.GetValue(value);
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(result)) return result;
|
||||
}
|
||||
|
||||
|
@ -74,7 +78,7 @@ namespace GreenshotPlugin.Core
|
|||
{
|
||||
if (key != null)
|
||||
{
|
||||
result = (string)key.GetValue(value);
|
||||
result = (string) key.GetValue(value);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -82,6 +86,7 @@ namespace GreenshotPlugin.Core
|
|||
{
|
||||
result = defaultValue;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue