protected void ApplyRevertGUI()
{
this.m_MightHaveModified = true;
EditorGUILayout.Space();
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
GUILayout.FlexibleSpace();
bool flag = false;
flag = this.ApplyRevertGUIButtons();
if (this.AssetWasUpdated() && (Event.current.type != EventType.Layout))
{
IPreviewable preview = this.preview;
if (preview != null)
{
preview.ReloadPreviewInstances();
}
this.ResetTimeStamp();
this.ResetValues();
base.Repaint();
}
GUILayout.EndHorizontal();
if (flag)
{
GUIUtility.ExitGUI();
}
}