solve bug, the callback function 'onHideButton()' call twice

Signed-off-by: YoungLeeForeverBoy <ly513782705@gmail.com>