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

Commit 34c73b9

Browse files
committed
Remove debug menus
1 parent 9b32fc8 commit 34c73b9

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/PopupWindow.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@ public enum PopupViewType
2424

2525
public event Action<bool> OnClose;
2626

27-
[MenuItem("GitHub/Authenticate")]
28-
public static void Launch()
29-
{
30-
OpenWindow(PopupViewType.AuthenticationView);
31-
}
32-
3327
public static PopupWindow OpenWindow(PopupViewType popupViewType, Action<bool> onClose = null)
3428
{
3529
var popupWindow = GetWindow<PopupWindow>(true);

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/Window.cs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ class Window : BaseWindow
1010
{
1111
private const float DefaultNotificationTimeout = 4f;
1212
private const string Title = "GitHub";
13-
private const string LaunchMenu = "Window/GitHub";
13+
private const string Menu_Window_GitHub = "Window/GitHub";
14+
private const string Menu_Window_GitHub_Command_Line = "Window/GitHub Command Line";
1415
private const string BadNotificationDelayError = "A delay of {0} is shorter than the default delay and thus would get pre-empted.";
1516
private const string InitializeTitle = "Initialize";
1617
private const string HistoryTitle = "History";
@@ -47,19 +48,13 @@ class Window : BaseWindow
4748
[SerializeField] private GUIContent repoUrlContent;
4849
[SerializeField] private CacheUpdateEvent lastCurrentBranchAndRemoteChangedEvent;
4950

50-
[MenuItem(LaunchMenu)]
51+
[MenuItem(Menu_Window_GitHub)]
5152
public static void Window_GitHub()
5253
{
5354
ShowWindow(EntryPoint.ApplicationManager);
5455
}
5556

56-
[MenuItem("GitHub/Show Window")]
57-
public static void GitHub_ShowWindow()
58-
{
59-
ShowWindow(EntryPoint.ApplicationManager);
60-
}
61-
62-
[MenuItem("GitHub/Command Line")]
57+
[MenuItem(Menu_Window_GitHub_Command_Line)]
6358
public static void GitHub_CommandLine()
6459
{
6560
EntryPoint.ApplicationManager.ProcessManager.RunCommandLineWindow(NPath.CurrentDirectory);

0 commit comments

Comments
 (0)