Check how this is done in other methods.  Basically check ev->obj == NULL || ev->obj == TrimAnglesSettingsHandle() and same for any settings below so you don't update things that don't change.