Checks whether the main form is in read-only mode (e.g. change history).Depending on the result, the 'true' or 'false' actions are called accordingly.