Hide time selector button when disabled

Fix #1310