Skip to content

Commit 33da428

Browse files
authored
Fix build after PR merge
Re-adding .net6 caused the collection expression to fail
1 parent 49eaa5e commit 33da428

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ElectronNET.API/API/Tray.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ public async Task Show(string image, MenuItem[] menuItems)
233233
public async Task SetMenuItems(MenuItem[] menuItems)
234234
{
235235
menuItems.AddMenuItemsId();
236-
await BridgeConnector.Socket.Emit("set-contextMenu", [menuItems]).ConfigureAwait(false);
236+
await BridgeConnector.Socket.Emit("set-contextMenu", new object[] { menuItems }).ConfigureAwait(false);
237237
_items.Clear();
238238
_items.AddRange(menuItems);
239239

@@ -365,4 +365,4 @@ public void Once(string eventName, Action action)
365365
public async Task Once<T>(string eventName, Action<T> action)
366366
=> await Events.Instance.Once(ModuleName, eventName, action).ConfigureAwait(false);
367367
}
368-
}
368+
}

0 commit comments

Comments
 (0)