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

Commit dbcad11

Browse files
authored
Merge pull request #653 from github-for-unity/fixes/profile-button
Fixing Profile button
2 parents b95cb0b + fee9d21 commit dbcad11

File tree

1 file changed

+4
-1
lines changed
  • src/UnityExtension/Assets/Editor/GitHub.Unity/UI

1 file changed

+4
-1
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/Window.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,10 @@ private void SignIn(object obj)
481481

482482
private void GoToProfile(object obj)
483483
{
484-
Application.OpenURL(Platform.CredentialManager.CachedCredentials.Host.Combine(Platform.CredentialManager.CachedCredentials.Username));
484+
//TODO: ONE_USER_LOGIN This assumes only ever one user can login
485+
var keychainConnection = Platform.Keychain.Connections.First();
486+
var uriString = new UriString(keychainConnection.Host).Combine(keychainConnection.Username);
487+
Application.OpenURL(uriString);
485488
}
486489

487490
private void SignOut(object obj)

0 commit comments

Comments
 (0)