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

Commit 06f525d

Browse files
Completing a dedicated UserSettingsView
1 parent 8edfbde commit 06f525d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ public override void OnDisable()
106106
public override void OnDataUpdate()
107107
{
108108
base.OnDataUpdate();
109+
if (userSettingsView != null)
110+
{
111+
userSettingsView.OnDataUpdate();
112+
}
113+
109114
MaybeUpdateData();
110115
}
111116

@@ -125,6 +130,7 @@ public override void OnRepositoryChanged(IRepository oldRepository)
125130
public override void Refresh()
126131
{
127132
base.Refresh();
133+
userSettingsView.Refresh();
128134
if (Repository != null && Repository.CurrentRemote.HasValue)
129135
{
130136
Repository.ListLocks().Start();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public override void OnGUI()
112112

113113
private void MaybeUpdateData()
114114
{
115-
if (Repository != null)
115+
if (Repository == null)
116116
{
117117
if ((cachedUser == null || String.IsNullOrEmpty(cachedUser.Name)) && GitClient != null)
118118
{

0 commit comments

Comments
 (0)