Skip to content

Commit

Permalink
removing unnecessary enablements
Browse files Browse the repository at this point in the history
refs #155276
  • Loading branch information
sbatten committed Jul 20, 2022
1 parent 316cf3e commit c523883
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/vs/platform/windows/electron-main/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,6 @@ export class CodeWindow extends Disposable implements ICodeWindow {
const [x, y] = this._win.getPosition();
const cursorPos = screen.getCursorScreenPoint();

this._win.setEnabled(false);
this._win.setEnabled(true);

this._onDidTriggerSystemContextMenu.fire({ x: cursorPos.x - x, y: cursorPos.y - y });
return 0; // skip native menu
});
Expand Down

0 comments on commit c523883

Please sign in to comment.