mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
Code quality changes
This commit is contained in:
parent
f07ed83722
commit
610f45d082
189 changed files with 4609 additions and 5203 deletions
|
@ -148,11 +148,9 @@ namespace GreenshotPlugin.UnmanagedHelpers {
|
|||
public static Color ColorizationColor {
|
||||
get {
|
||||
using (RegistryKey key = Registry.CurrentUser.OpenSubKey(COLORIZATION_COLOR_KEY, false)) {
|
||||
if (key != null) {
|
||||
object dwordValue = key.GetValue("ColorizationColor");
|
||||
if (dwordValue != null) {
|
||||
return Color.FromArgb((Int32)dwordValue);
|
||||
}
|
||||
object dwordValue = key?.GetValue("ColorizationColor");
|
||||
if (dwordValue != null) {
|
||||
return Color.FromArgb((int)dwordValue);
|
||||
}
|
||||
}
|
||||
return Color.White;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue