Inheritance: EditorWindow
Ejemplo n.º 1
0
    public static void Init()
    {
        // Get existing open window or if none, make a new one:
        Instance = EditorWindow.GetWindow <GitPushWindow>(true, "Git Push");

        Instance.remotes = GitSystem.GetRemotesList();

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

        Instance.remotes = GitSystem.GetRemotesList();

        for ( int i = 0; i < Instance.remotes.Length; i++ )
        {
            if ( Instance.remotes[i] == GitSystem.currentRemote )
            {
                Instance.remoteSelection = i;
            }
        }
    }
Ejemplo n.º 3
0
 static void GitPush()
 {
     GitPushWindow.Init();
 }