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 Nov 9, 2017

The UserSettingsView is currently requesting the user name and email from the GitClient inside it's display loop. This PR fixes up the logic so we can refresh at a normal rate until we have a cache for user data in #412

Depends on:

…oj-view-spam

# Conflicts:
#	src/UnityExtension/Assets/Editor/GitHub.Unity/UI/UserSettingsView.cs
@shana shana changed the base branch from master to fixes/git-client-should-return-user November 10, 2017 00:25
@shana shana changed the base branch from fixes/git-client-should-return-user to master November 10, 2017 00:39
newGitEmail = gitEmail = Repository.User.Email;
GitClient.GetConfigUserAndEmail()
.ThenInUI((success, user) => {
if (success && !String.IsNullOrEmpty(user.Name) && !String.IsNullOrEmpty(user.Email))
Copy link
Member

Choose a reason for hiding this comment

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

What happens if this is empty? Do we not want to show that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Logged in #429

@shana shana merged commit e1f42ce into master Nov 10, 2017
@shana shana deleted the fixes/init-proj-view-spam branch November 10, 2017 00:47
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.

3 participants