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