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

Commit 08abce5

Browse files
Making sure user data is updated correctly
1 parent c9b9bbb commit 08abce5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -294,15 +294,15 @@ private void OnUserSettingsGUI()
294294
{
295295
if (Repository != null)
296296
{
297-
Repository.User.Name = value;
297+
Repository.User.Name = newGitName;
298298
}
299299
else
300300
{
301301
if (cachedUser == null)
302302
{
303303
cachedUser = new User();
304304
}
305-
cachedUser.Name = value;
305+
cachedUser.Name = newGitName;
306306
}
307307
}
308308
})
@@ -314,13 +314,14 @@ private void OnUserSettingsGUI()
314314
{
315315
if (Repository != null)
316316
{
317-
Repository.User.Email = value;
317+
Repository.User.Email = newGitEmail;
318318
}
319319
else
320320
{
321-
cachedUser.Email = value;
322-
userDataHasChanged = true;
321+
cachedUser.Email = newGitEmail;
323322
}
323+
324+
userDataHasChanged = true;
324325
}
325326
}))
326327
.FinallyInUI((_, __) =>

0 commit comments

Comments
 (0)