It is slightly more resource efficient to create a local bool, update that one-way flag when needed, and then setEnabled based on the content of that bool, than it would be to call that method every time.