Double-click to view the task details before completing, and when the Task details screen displays, check the content and then click either the Completed checkbox or the Complete and Close button :
The number of Incomplete Tasks depicted on the Tasks icon will decrease by 1.