public static void Init() { // Get existing open window or if none, make a new one: Instance = EditorWindow.GetWindow <GitFetchWindow>(true, "Git Fetch"); 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<GitFetchWindow>(true, "Git Fetch"); Instance.remotes = GitSystem.GetRemotesList(); for ( int i = 0; i < Instance.remotes.Length; i++ ) { if ( Instance.remotes[i] == GitSystem.currentRemote ) { Instance.remoteSelection = i; } } }
static void GitFetch() { GitFetchWindow.Init(); }