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

Commit 76a11f7

Browse files
Removing UserSettingsView and GitPathView from InitProjectView
1 parent 09e8c64 commit 76a11f7

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

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

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ class InitProjectView : Subview
1111
private const string NoRepoDescription = "Initialize a Git repository to track changes and collaborate with others.";
1212
private const string NoUserOrEmailError = "Name and Email must be configured in Settings";
1313

14-
[SerializeField] private UserSettingsView userSettingsView = new UserSettingsView();
15-
[SerializeField] private GitPathView gitPathView = new GitPathView();
16-
1714
[NonSerialized] private bool isBusy;
1815

1916
[NonSerialized] private string errorMessage;
@@ -24,9 +21,6 @@ public override void InitializeView(IView parent)
2421
{
2522
base.InitializeView(parent);
2623

27-
userSettingsView.InitializeView(this);
28-
gitPathView.InitializeView(this);
29-
3024
if (!string.IsNullOrEmpty(Environment.GitExecutablePath))
3125
{
3226
CheckForUser();
@@ -36,17 +30,9 @@ public override void InitializeView(IView parent)
3630
public override void OnEnable()
3731
{
3832
base.OnEnable();
39-
gitPathView.OnEnable();
4033
userDataHasChanged = Environment.GitExecutablePath != null;
4134
}
4235

43-
public override void OnDataUpdate()
44-
{
45-
base.OnDataUpdate();
46-
userSettingsView.OnDataUpdate();
47-
gitPathView.OnDataUpdate();
48-
}
49-
5036
public override void OnGUI()
5137
{
5238
GUILayout.BeginVertical(Styles.GenericBoxStyle);
@@ -124,7 +110,7 @@ private void CheckForUser()
124110

125111
public override bool IsBusy
126112
{
127-
get { return isBusy || userSettingsView.IsBusy || gitPathView.IsBusy; }
113+
get { return isBusy; }
128114
}
129115
}
130116
}

0 commit comments

Comments
 (0)