mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Remove ipcMainOn window calls
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
7ee71219a2
commit
1cfba32493
@ -33,9 +33,6 @@ import { isWindows, productName } from "../common/vars";
|
|||||||
import { LensProxy } from "./lens-proxy";
|
import { LensProxy } from "./lens-proxy";
|
||||||
|
|
||||||
export const enum IpcMainWindowEvents {
|
export const enum IpcMainWindowEvents {
|
||||||
MINIMIZE = "window:minimize",
|
|
||||||
MAXIMIZE = "window:maximize",
|
|
||||||
CLOSE = "window:close",
|
|
||||||
OPEN_CONTEXT_MENU = "window:open-context-menu",
|
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) => {
|
ipcMainOn(IpcRendererNavigationEvents.CLUSTER_VIEW_CURRENT_ID, (event, clusterId: ClusterId) => {
|
||||||
this.activeClusterId = 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<BrowserWindow> {
|
async ensureMainWindow(showSplash = true): Promise<BrowserWindow> {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user