public static void Init() { // Get existing open window or if none, make a new one: Instance = EditorWindow.GetWindow <GitPullWindow>(true, "Git Pull"); Instance.remotes = GitSystem.GetRemotesList(); for (int i = 0; i < Instance.remotes.Length; i++) { if (Instance.remotes[i] == GitSystem.currentRemote) { Instance.remoteSelection = i; } } }
public static void Init() { // Get existing open window or if none, make a new one: Instance = EditorWindow.GetWindow<GitPullWindow>(true, "Git Pull"); Instance.remotes = GitSystem.GetRemotesList(); for ( int i = 0; i < Instance.remotes.Length; i++ ) { if ( Instance.remotes[i] == GitSystem.currentRemote ) { Instance.remoteSelection = i; } } }
static void GitPull() { GitPullWindow.Init(); }