static void DoConflictsTree( IncomingChangesTreeView incomingChangesTreeView, bool isOperationRunning) { GUI.enabled = !isOperationRunning; Rect rect = GUILayoutUtility.GetRect(0, 100000, 0, 100000); incomingChangesTreeView.OnGUI(rect); GUI.enabled = true; }
static void DoConflictsTree( IncomingChangesTreeView incomingChangesTreeView, bool isOperationRunning, bool hasNothingToDownload, bool isUpdateSuccessful) { GUI.enabled = !isOperationRunning; Rect rect = GUILayoutUtility.GetRect(0, 100000, 0, 100000); incomingChangesTreeView.OnGUI(rect); if (hasNothingToDownload) { DrawEmptyState(rect, isUpdateSuccessful); } GUI.enabled = true; }
static void DoConflictsTree( IncomingChangesTreeView incomingChangesTreeView, bool isOperationRunning, bool hasNothingToDownload) { GUI.enabled = !isOperationRunning; Rect rect = GUILayoutUtility.GetRect(0, 100000, 0, 100000); incomingChangesTreeView.OnGUI(rect); if (hasNothingToDownload) { DrawTreeViewEmptyState.For( rect, PlasticLocalization.GetString(PlasticLocalization.Name.NoIncomingChanges), PlasticLocalization.GetString(PlasticLocalization.Name.WorkspaceIsUpToDate), Images.Name.StepOk); } GUI.enabled = true; }