mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-04 14:11:38 +12:00
Don't close region capture when double clicked and there is no region
This commit is contained in:
parent
547910b67b
commit
8b8eacda66
|
@ -858,8 +858,9 @@ private void form_MouseDoubleClick(object sender, MouseEventArgs e)
|
|||
{
|
||||
if (e.Button == MouseButtons.Left)
|
||||
{
|
||||
if (IsCurrentShapeTypeRegion)
|
||||
if (IsCurrentShapeTypeRegion && ValidRegions.Length > 0)
|
||||
{
|
||||
form.UpdateRegionPath();
|
||||
form.Close(RegionResult.Region);
|
||||
}
|
||||
else if (CurrentShape != null && !IsCreating)
|
||||
|
|
Loading…
Reference in a new issue