From 84f9984334a509429000da88c0ef4586b5be1981 Mon Sep 17 00:00:00 2001 From: Christian Schulz Date: Fri, 4 Mar 2022 23:35:16 +0100 Subject: [PATCH] ensure that the undo button is enabled after crop, especially when confirming with Enter --- src/Greenshot.Editor/Drawing/Surface.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Greenshot.Editor/Drawing/Surface.cs b/src/Greenshot.Editor/Drawing/Surface.cs index a82daa6f3..6ba2e27a6 100644 --- a/src/Greenshot.Editor/Drawing/Surface.cs +++ b/src/Greenshot.Editor/Drawing/Surface.cs @@ -2139,6 +2139,12 @@ namespace Greenshot.Editor.Drawing _cropContainer = null; break; } + + // maybe the undo button has to be enabled + if (_movingElementChanged != null) + { + _movingElementChanged(this, new SurfaceElementEventArgs()); + } } public void RemoveCropContainer()