Added AnnotationEnabled setting so people can disable it to get old behavior

This commit is contained in:
Jaex 2016-05-14 12:19:31 +03:00
parent 2913b4b781
commit e639111778
3 changed files with 5 additions and 2 deletions

View file

@ -37,6 +37,9 @@ public class SurfaceOptions
[DefaultValue(true), Description("Allow screenshot capture as soon as the mouse is released. This disables the ability to capture multiple shapes and to move and/or resize them.")]
public bool QuickCrop { get; set; }
[DefaultValue(true), Description("If annotation is disabled then right click will cancel screen capture instead of opening options menu.")]
public bool AnnotationEnabled { get; set; }
[DefaultValue(true), Description("Allows selection of window regions in region capture.")]
public bool DetectWindows { get; set; }

View file

@ -2097,7 +2097,8 @@ private void CaptureRegion(CaptureType captureType, TaskSettings taskSettings, b
{
default:
case CaptureType.Rectangle:
surface = new RectangleRegionForm(RectangleRegionMode.Annotation);
RectangleRegionMode mode = taskSettings.CaptureSettings.SurfaceOptions.AnnotationEnabled ? RectangleRegionMode.Annotation : RectangleRegionMode.Default;
surface = new RectangleRegionForm(mode);
break;
case CaptureType.Polygon:
surface = new PolygonRegionForm();

View file

@ -561,7 +561,6 @@ public static void OpenRuler()
form.Config.QuickCrop = false;
form.Config.ShowInfo = true;
form.Config.ShowTips = false;
form.ShapeManager.MinimumSize = 3;
form.Prepare();
form.ShowDialog();
}