mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-06 05:05:42 +13:00
Added AnnotationEnabled setting so people can disable it to get old behavior
This commit is contained in:
parent
2913b4b781
commit
e639111778
3 changed files with 5 additions and 2 deletions
|
@ -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; }
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue