//Window creation public static BranchWindow ShowWindow(Action onClose) { //Show existing window instance. If one doesn't exist, make one. BranchWindow window = (BranchWindow)BranchWindow.GetWindow(typeof(BranchWindow), true, "Stash"); window.onClose = onClose; return(window); }
//Run when button is clicked public override void OnClick(GitGudWindow window) { BranchWindow.ShowWindow(GitEvents.TriggerOnLocalChange); }