v3.1.1: disabled button when canvas is empty