Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Conversation

@StanleyGoldman
Copy link
Contributor

@StanleyGoldman StanleyGoldman commented Oct 20, 2017

This branch targets #151

public Rect Render(Rect rect, Action<TreeNode> singleClick = null, Action<TreeNode> doubleClick = null)
{
if (!nodes.Any())
return rect;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: take this out and check IsInitialized before calling Render

}

public void Load(IEnumerable<ITreeData> data, string title)
public void Load(IEnumerable<GitBranch> data, string title)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert this change

private void OnTreeGUI(Rect rect)
{
if (!treeLocals.IsInitialized)
RefreshBranchList();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was ensuring render doesn't get called before initialization happens, so we need to add this check in a different way now we have the cache going

@shana shana merged commit 4cfcb06 into branches-view Nov 15, 2017
@shana shana deleted the stanley/branches-view-fixes branch November 15, 2017 15:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants