UnityEditor.ASUpdateConflictResolveWindow.ResolveSelectedDownloadConflicts C# (CSharp) Method

ResolveSelectedDownloadConflicts() private method

private ResolveSelectedDownloadConflicts ( DownloadResolution res ) : void
res DownloadResolution
return void
        private void ResolveSelectedDownloadConflicts(DownloadResolution res)
        {
            int index = -1;
            bool flag = false;
            for (int i = 0; i < this.downloadConflicts.Length; i++)
            {
                if (this.selectedLV1Items[i])
                {
                    string guid = this.downloadConflicts[i];
                    if ((res == DownloadResolution.Merge) && (AssetServer.AssetIsBinaryByGUID(guid) || AssetServer.IsItemDeleted(guid)))
                    {
                        flag = true;
                    }
                    else
                    {
                        if (res != DownloadResolution.Unresolved)
                        {
                            if (AssetServer.GetDownloadResolution(guid) == DownloadResolution.Unresolved)
                            {
                                this.downloadConflictsToResolve--;
                            }
                        }
                        else
                        {
                            this.downloadConflictsToResolve++;
                        }
                        this.downloadResolutions[i] = res;
                        AssetServer.SetDownloadResolution(guid, res);
                        index = (index != -1) ? -2 : i;
                    }
                }
            }
            this.enableContinueButton = this.downloadConflictsToResolve == 0;
            if (index >= 0)
            {
                this.selectedLV1Items[index] = false;
                if (index < (this.selectedLV1Items.Length - 1))
                {
                    this.selectedLV1Items[index + 1] = true;
                }
            }
            this.enableMergeButton = this.AtLeastOneSelectedAssetCanBeMerged();
            if (flag)
            {
                EditorUtility.DisplayDialog("Some conflicting changes cannot be merged", "Notice that not all selected changes where selected for merging. This happened because not all of them can be merged (e.g. assets are binary or deleted).", "OK");
            }
        }