Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
Remove debug menus
Browse files Browse the repository at this point in the history
  • Loading branch information
shana committed Mar 22, 2018
1 parent 9b32fc8 commit 34c73b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ public enum PopupViewType

public event Action<bool> OnClose;

[MenuItem("GitHub/Authenticate")]
public static void Launch()
{
OpenWindow(PopupViewType.AuthenticationView);
}

public static PopupWindow OpenWindow(PopupViewType popupViewType, Action<bool> onClose = null)
{
var popupWindow = GetWindow<PopupWindow>(true);
Expand Down
13 changes: 4 additions & 9 deletions src/UnityExtension/Assets/Editor/GitHub.Unity/UI/Window.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ class Window : BaseWindow
{
private const float DefaultNotificationTimeout = 4f;
private const string Title = "GitHub";
private const string LaunchMenu = "Window/GitHub";
private const string Menu_Window_GitHub = "Window/GitHub";
private const string Menu_Window_GitHub_Command_Line = "Window/GitHub Command Line";
private const string BadNotificationDelayError = "A delay of {0} is shorter than the default delay and thus would get pre-empted.";
private const string InitializeTitle = "Initialize";
private const string HistoryTitle = "History";
Expand Down Expand Up @@ -47,19 +48,13 @@ class Window : BaseWindow
[SerializeField] private GUIContent repoUrlContent;
[SerializeField] private CacheUpdateEvent lastCurrentBranchAndRemoteChangedEvent;

[MenuItem(LaunchMenu)]
[MenuItem(Menu_Window_GitHub)]
public static void Window_GitHub()
{
ShowWindow(EntryPoint.ApplicationManager);
}

[MenuItem("GitHub/Show Window")]
public static void GitHub_ShowWindow()
{
ShowWindow(EntryPoint.ApplicationManager);
}

[MenuItem("GitHub/Command Line")]
[MenuItem(Menu_Window_GitHub_Command_Line)]
public static void GitHub_CommandLine()
{
EntryPoint.ApplicationManager.ProcessManager.RunCommandLineWindow(NPath.CurrentDirectory);
Expand Down

0 comments on commit 34c73b9

Please sign in to comment.