This repository was archived by the owner on Dec 25, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ public TelemetryMenu() : base("PocceMod", "telemetry menu")
1212 OnItemSelect += ( _menu , _item , _index ) =>
1313 {
1414 submenu . OpenMenu ( _item . ItemData ) ;
15+ CloseMenu ( ) ;
1516 } ;
1617
1718 OnMenuOpen += ( _menu ) =>
Original file line number Diff line number Diff line change 22using PocceMod . Shared ;
33using System ;
44using System . Collections . Generic ;
5- using System . Dynamic ;
65using System . Linq ;
76using System . Threading . Tasks ;
87
@@ -36,6 +35,9 @@ public static IEnumerable<KeyValuePair<int, PlayerTelemetry>> Entries
3635
3736 public static Func < Task > Wrap ( string feature , Func < Task > func )
3837 {
38+ if ( ! Enabled )
39+ return func ;
40+
3941 return ( ) =>
4042 {
4143 var start = DateTime . Now ;
@@ -101,9 +103,9 @@ private static void ReceiveTelemetry(int sourcePlayer, dynamic data)
101103 _playerTelemetries [ sourcePlayer ] = playerTelemetry ;
102104 }
103105
104- private static dynamic ComposeAndClear ( )
106+ private static IDictionary < string , object > ComposeAndClear ( )
105107 {
106- IDictionary < string , object > result = new ExpandoObject ( ) ;
108+ IDictionary < string , object > result = new Dictionary < string , object > ( ) ;
107109
108110 foreach ( var pair in _localData )
109111 {
You can’t perform that action at this time.
0 commit comments