From 1cfba32493141e34ed7f0a4ccc747b97eb9cd020 Mon Sep 17 00:00:00 2001 From: Alex Andreev Date: Wed, 8 Dec 2021 14:02:16 +0300 Subject: [PATCH] Remove ipcMainOn window calls Signed-off-by: Alex Andreev --- src/main/window-manager.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/main/window-manager.ts b/src/main/window-manager.ts index a082912820..4cd748817e 100644 --- a/src/main/window-manager.ts +++ b/src/main/window-manager.ts @@ -33,9 +33,6 @@ import { isWindows, productName } from "../common/vars"; import { LensProxy } from "./lens-proxy"; export const enum IpcMainWindowEvents { - MINIMIZE = "window:minimize", - MAXIMIZE = "window:maximize", - CLOSE = "window:close", OPEN_CONTEXT_MENU = "window:open-context-menu", } @@ -175,11 +172,6 @@ export class WindowManager extends Singleton { ipcMainOn(IpcRendererNavigationEvents.CLUSTER_VIEW_CURRENT_ID, (event, clusterId: ClusterId) => { this.activeClusterId = clusterId; }); - - // custom window events, needed on windows and linux - ipcMainOn(IpcMainWindowEvents.MINIMIZE, () => this.mainWindow.minimize()); - ipcMainOn(IpcMainWindowEvents.MAXIMIZE, () => this.mainWindow.maximize()); - ipcMainOn(IpcMainWindowEvents.CLOSE, () => this.mainWindow.close()); } async ensureMainWindow(showSplash = true): Promise {