From d071aa442db00424ea403b21beea98029d37153c Mon Sep 17 00:00:00 2001 From: loucass003 Date: Tue, 21 Apr 2026 23:45:19 +0200 Subject: [PATCH] Prevent new windows with Ctrl+Click on links --- gui/electron/main/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gui/electron/main/index.ts b/gui/electron/main/index.ts index 1a3a6685f6..0245b1c511 100644 --- a/gui/electron/main/index.ts +++ b/gui/electron/main/index.ts @@ -360,6 +360,10 @@ function createWindow() { if (mainWindow) menu.popup({ window: mainWindow }); }); + + mainWindow.webContents.setWindowOpenHandler(() => { + return { action: "deny" }; + }); } const checkEnvironmentVariables = () => {