This commit is contained in:
SteVen Batten 2019-04-17 19:29:21 -07:00
parent 54c7d51015
commit 3a6dcb4200

View file

@ -16,7 +16,9 @@ export function registerContextMenuListener(): void {
y: options ? options.y : undefined,
positioningItem: options ? options.positioningItem : undefined,
callback: () => {
event.sender.send(CONTEXT_MENU_CLOSE_CHANNEL, contextMenuId);
if (menu) {
event.sender.send(CONTEXT_MENU_CLOSE_CHANNEL, contextMenuId);
}
}
});
});