[CA-114492] Only do SetUp if the user was actually dragging a button (not for every click on the button)

Signed-off-by: Callum McIntyre <callumiandavid.mcintyre@citrix.com>
This commit is contained in:
Callum McIntyre 2016-10-10 10:11:30 +01:00
parent 9f39bdfb23
commit baccb87d00

View File

@ -401,9 +401,13 @@ namespace XenAdmin.Controls.XenSearch
void button_MouseUp(object sender, MouseEventArgs e)
{
bool wasDragging = dragging;
draggedButton = null;
dragging = false;
Setup();
if(wasDragging)
Setup();
}
void button_MouseDown(object sender, MouseEventArgs e)