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

Commit 9ba09e6

Browse files
Nitpicking code
1 parent 5ef958b commit 9ba09e6

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

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

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -692,28 +692,25 @@ private void OnInstallPathGUI()
692692
EditorGUI.BeginDisabledGroup(isBusy);
693693
{
694694
// Install path field
695-
//EditorGUI.BeginChangeCheck();
696-
{
697-
GUILayout.BeginHorizontal();
698-
{
699-
newGitExec = EditorGUILayout.TextField(PathToGit, newGitExec);
695+
GUILayout.BeginHorizontal();
696+
{
697+
newGitExec = EditorGUILayout.TextField(PathToGit, newGitExec);
700698

701-
if (GUILayout.Button(BrowseButton, EditorStyles.miniButton, GUILayout.Width(25)))
702-
{
703-
GUI.FocusControl(null);
699+
if (GUILayout.Button(BrowseButton, EditorStyles.miniButton, GUILayout.Width(25)))
700+
{
701+
GUI.FocusControl(null);
704702

705-
var newValue = EditorUtility.OpenFilePanel(GitInstallBrowseTitle,
706-
gitExecParent,
707-
gitExecExtension);
703+
var newValue = EditorUtility.OpenFilePanel(GitInstallBrowseTitle,
704+
gitExecParent,
705+
gitExecExtension);
708706

709-
if (!string.IsNullOrEmpty(newValue))
710-
{
711-
newGitExec = newValue;
712-
}
707+
if (!string.IsNullOrEmpty(newValue))
708+
{
709+
newGitExec = newValue;
713710
}
714711
}
715-
GUILayout.EndHorizontal();
716712
}
713+
GUILayout.EndHorizontal();
717714

718715
GUILayout.Space(EditorGUIUtility.standardVerticalSpacing);
719716

0 commit comments

Comments
 (0)