Пример #1
0
    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;
            }
        }
    }
Пример #2
0
	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;
			}
		}
	}
Пример #3
0
 static void GitFetch()
 {
     GitFetchWindow.Init();
 }