We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49eaa5e commit 33da428Copy full SHA for 33da428
src/ElectronNET.API/API/Tray.cs
@@ -233,7 +233,7 @@ public async Task Show(string image, MenuItem[] menuItems)
233
public async Task SetMenuItems(MenuItem[] menuItems)
234
{
235
menuItems.AddMenuItemsId();
236
- await BridgeConnector.Socket.Emit("set-contextMenu", [menuItems]).ConfigureAwait(false);
+ await BridgeConnector.Socket.Emit("set-contextMenu", new object[] { menuItems }).ConfigureAwait(false);
237
_items.Clear();
238
_items.AddRange(menuItems);
239
@@ -365,4 +365,4 @@ public void Once(string eventName, Action action)
365
public async Task Once<T>(string eventName, Action<T> action)
366
=> await Events.Instance.Once(ModuleName, eventName, action).ConfigureAwait(false);
367
}
368
-}
+}
0 commit comments