public void EndRename(bool acceptChanges)
{
if (this.m_IsRenaming)
{
Undo.undoRedoPerformed = (Undo.UndoRedoCallback) Delegate.Remove(Undo.undoRedoPerformed, new Undo.UndoRedoCallback(this.UndoRedoWasPerformed));
if (this.m_DelayedCallback != null)
{
this.m_DelayedCallback.Clear();
}
this.RemoveMessage();
if (this.isRenamingFilename)
{
this.m_Name = InternalEditorUtility.RemoveInvalidCharsFromFileName(this.m_Name, true);
}
this.m_IsRenaming = false;
this.m_IsWaitingForDelay = false;
this.m_UserAcceptedRename = acceptChanges;
this.RepaintClientView();
}
}