Remember the read-only state so that it can be taken into account when changing the enabled state of the erase background button.