This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-15
lines changed
src/UnityExtension/Assets/Editor/GitHub.Unity/UI Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,6 @@ public enum PopupViewType
24
24
25
25
public event Action < bool > OnClose ;
26
26
27
- [ MenuItem ( "GitHub/Authenticate" ) ]
28
- public static void Launch ( )
29
- {
30
- OpenWindow ( PopupViewType . AuthenticationView ) ;
31
- }
32
-
33
27
public static PopupWindow OpenWindow ( PopupViewType popupViewType , Action < bool > onClose = null )
34
28
{
35
29
var popupWindow = GetWindow < PopupWindow > ( true ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ class Window : BaseWindow
10
10
{
11
11
private const float DefaultNotificationTimeout = 4f ;
12
12
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" ;
14
15
private const string BadNotificationDelayError = "A delay of {0} is shorter than the default delay and thus would get pre-empted." ;
15
16
private const string InitializeTitle = "Initialize" ;
16
17
private const string HistoryTitle = "History" ;
@@ -47,19 +48,13 @@ class Window : BaseWindow
47
48
[ SerializeField ] private GUIContent repoUrlContent ;
48
49
[ SerializeField ] private CacheUpdateEvent lastCurrentBranchAndRemoteChangedEvent ;
49
50
50
- [ MenuItem ( LaunchMenu ) ]
51
+ [ MenuItem ( Menu_Window_GitHub ) ]
51
52
public static void Window_GitHub ( )
52
53
{
53
54
ShowWindow ( EntryPoint . ApplicationManager ) ;
54
55
}
55
56
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 ) ]
63
58
public static void GitHub_CommandLine ( )
64
59
{
65
60
EntryPoint . ApplicationManager . ProcessManager . RunCommandLineWindow ( NPath . CurrentDirectory ) ;
You can’t perform that action at this time.
0 commit comments