This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +23
-0
lines changed
UnityExtension/Assets/Editor/GitHub.Unity/UI Expand file tree Collapse file tree 5 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -17,5 +17,7 @@ public interface IUsageTracker
17
17
void IncrementSettingsViewButtonLfsUnlock ( ) ;
18
18
void IncrementUnityProjectViewContextLfsLock ( ) ;
19
19
void IncrementUnityProjectViewContextLfsUnlock ( ) ;
20
+ void IncrementPublishViewButtonPublish ( ) ;
21
+ void IncrementApplicationMenuMenuItemCommandLine ( ) ;
20
22
}
21
23
}
Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ public class Measures
40
40
public int SettingsViewButtonLfsUnlock { get ; set ; }
41
41
public int UnityProjectViewContextLfsLock { get ; set ; }
42
42
public int UnityProjectViewContextLfsUnlock { get ; set ; }
43
+ public int PublishViewButtonPublish { get ; set ; }
44
+ public int ApplicationMenuMenuItemCommandLine { get ; set ; }
43
45
}
44
46
45
47
class UsageModel
Original file line number Diff line number Diff line change @@ -223,6 +223,22 @@ public void IncrementUnityProjectViewContextLfsUnlock()
223
223
usageLoader . Save ( usage ) ;
224
224
}
225
225
226
+ public void IncrementPublishViewButtonPublish ( )
227
+ {
228
+ var usage = usageLoader . Load ( userId ) ;
229
+ usage . GetCurrentMeasures ( appVersion , unityVersion , instanceId )
230
+ . PublishViewButtonPublish ++ ;
231
+ usageLoader . Save ( usage ) ;
232
+ }
233
+
234
+ public void IncrementApplicationMenuMenuItemCommandLine ( )
235
+ {
236
+ var usage = usageLoader . Load ( userId ) ;
237
+ usage . GetCurrentMeasures ( appVersion , unityVersion , instanceId )
238
+ . ApplicationMenuMenuItemCommandLine ++ ;
239
+ usageLoader . Save ( usage ) ;
240
+ }
241
+
226
242
public bool Enabled
227
243
{
228
244
get
Original file line number Diff line number Diff line change @@ -173,6 +173,8 @@ public override void OnGUI()
173
173
return ;
174
174
}
175
175
176
+ TaskManager . Run ( UsageTracker . IncrementPublishViewButtonPublish ) ;
177
+
176
178
if ( repository == null )
177
179
{
178
180
Logger . Warning ( "Returned Repository is null" ) ;
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ public static void Window_GitHub()
58
58
public static void GitHub_CommandLine ( )
59
59
{
60
60
EntryPoint . ApplicationManager . ProcessManager . RunCommandLineWindow ( NPath . CurrentDirectory ) ;
61
+ EntryPoint . ApplicationManager . TaskManager . Run ( EntryPoint . ApplicationManager . UsageTracker . IncrementApplicationMenuMenuItemCommandLine ) ;
61
62
}
62
63
63
64
#if DEBUG
You can’t perform that action at this time.
0 commit comments