mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 13:33:27 -07:00
Code quality changes
This commit is contained in:
parent
f07ed83722
commit
610f45d082
189 changed files with 4609 additions and 5203 deletions
|
@ -84,9 +84,7 @@ namespace Greenshot.Controls {
|
|||
if (_cursor != null) {
|
||||
_cursor.Dispose();
|
||||
}
|
||||
if (_movableShowColorForm != null) {
|
||||
_movableShowColorForm.Dispose();
|
||||
}
|
||||
_movableShowColorForm?.Dispose();
|
||||
}
|
||||
_movableShowColorForm = null;
|
||||
_cursor = null;
|
||||
|
@ -114,10 +112,7 @@ namespace Greenshot.Controls {
|
|||
{
|
||||
//Release Capture should consume MouseUp when canceled with the escape key
|
||||
User32.ReleaseCapture();
|
||||
if (PipetteUsed != null)
|
||||
{
|
||||
PipetteUsed(this, new PipetteUsedArgs(_movableShowColorForm.color));
|
||||
}
|
||||
PipetteUsed?.Invoke(this, new PipetteUsedArgs(_movableShowColorForm.color));
|
||||
}
|
||||
base.OnMouseUp(e);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue