Button icon indicating copy to clipboard operation
Button copied to clipboard

In Button.cpp, the doubleclickFound flag is not cleared

Open mrtktabornsr opened this issue 3 years ago • 1 comments

In Button.cpp, the doubleclickFound flag is not cleared until the next time the button is pressed. The Button::isDoubleClicked() member will return true every time it is called until the button is pressed again. The Button::isDoubleClicked() member could be used to clear the flag once it is read.

bool Button::isDoubleClicked(bool proc) { bool currentFlagState ;
if(proc) process(); currentFlagState = doubleclickFound; //-------- remember the current flag state doubleclickFound = false; //-------- clear the doubleclickFound flag return currentFlagState; //------------ return the actual dooubleclick state }

mrtktabornsr avatar May 14 '22 23:05 mrtktabornsr

Thank you for the bug report! If you're willing to make a pull request, I'd be happy to merge it

t3db0t avatar May 15 '22 02:05 t3db0t