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

Commit 344beec

Browse files
Being sure to clear focus when changing the git user information
1 parent 3ef6ecc commit 344beec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ public override void OnGUI()
5353
{
5454
if (GUILayout.Button(GitConfigUserSave, GUILayout.ExpandWidth(false)))
5555
{
56+
GUI.FocusControl(null);
57+
isBusy = true;
58+
5659
GitClient.SetConfig("user.name", newGitName, GitConfigSource.User)
5760
.Then((success, value) =>
5861
{
@@ -96,7 +99,6 @@ public override void OnGUI()
9699
Redraw();
97100
})
98101
.Start();
99-
isBusy = true;
100102
}
101103
}
102104
EditorGUI.EndDisabledGroup();

0 commit comments

Comments
 (0)