UnityEditor.ASMainWindow.ActionDiscardChanges C# (CSharp) Method

ActionDiscardChanges() private method

private ActionDiscardChanges ( ) : void
return void
        private void ActionDiscardChanges()
        {
            if (EditorUtility.DisplayDialog("Discard all changes", "Are you sure you want to discard all local changes made in the project?", "Discard", "Cancel"))
            {
                AssetServer.RemoveMaintErrorsFromConsole();
                if (!ASEditorBackend.SettingsIfNeeded())
                {
                    Debug.Log("Asset Server connection for current project is not set up");
                    this.error = true;
                }
                else
                {
                    this.error = false;
                    AssetServer.SetAfterActionFinishedCallback("ASEditorBackend", "CBDoDiscardChanges");
                    AssetServer.DoUpdateStatusOnNextTick();
                }
            }
        }