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

Commit cb1ca4c

Browse files
Tweaking code
1 parent 7ffd2f2 commit cb1ca4c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -458,30 +458,30 @@ private void OnInstallPathGUI()
458458
// Find button - for attempting to locate a new install
459459
if (GUILayout.Button(GitInstallFindButton, GUILayout.ExpandWidth(false)))
460460
{
461-
var task = new ProcessTask<NPath>(Manager.CancellationToken, new FirstLineIsPathOutputProcessor())
461+
GUI.FocusControl(null);
462+
463+
new ProcessTask<NPath>(Manager.CancellationToken, new FirstLineIsPathOutputProcessor())
462464
.Configure(Manager.ProcessManager, Environment.IsWindows ? "where" : "which", "git")
463465
.FinallyInUI((success, ex, path) =>
464466
{
465467
if (success)
466468
{
467-
Logger.Trace("FindProcess Completed Path:{1}", success, path);
469+
Logger.Trace("FindGit Path:{0}", path);
468470
}
469471
else
470472
{
471473
if (ex != null)
472474
{
473-
Logger.Error(ex, "FindProcess Error Path:{1}", success, path);
475+
Logger.Error(ex, "FindGit Error Path:{0}", path);
474476
}
475477
else
476478
{
477-
Logger.Error("FindProcess Failed Path:{1}", success, path);
479+
Logger.Error("FindGit Failed Path:{0}", path);
478480
}
479481
}
480482

481483
if (success && !string.IsNullOrEmpty(path))
482484
{
483-
GUIUtility.keyboardControl = GUIUtility.hotControl = 0;
484-
485485
Manager.SystemSettings.Set(Constants.GitInstallPathKey, gitExecPath);
486486
Environment.GitExecutablePath = gitExecPath.ToNPath();
487487
}

0 commit comments

Comments
 (0)