fix context menu

This commit is contained in:
Evan Simkowitz 2024-08-16 18:01:31 -07:00
parent 7a1a3a2bea
commit bc500490e9
No known key found for this signature in database

View File

@ -40,7 +40,7 @@ class ContextMenuModelType {
showContextMenu(menu: ContextMenuItem[], ev: React.MouseEvent<any>): void {
this.handlers.clear();
const electronMenuItems = this._convertAndRegisterMenu(menu);
getApi().showContextMenu(electronMenuItems, { x: ev.clientX, y: ev.clientY });
getApi().showContextMenu(electronMenuItems);
}
}