From 89f412f52ac3bdb25b84ebeeb0edb57fccc0a276 Mon Sep 17 00:00:00 2001 From: neuronull <9162534+neuronull@users.noreply.github.com> Date: Mon, 3 Nov 2025 11:00:48 -0700 Subject: [PATCH] Revert "ipc handlers in init" This reverts commit a23999edcfda396eb0c0910d8a318b084a3c4120. --- .../src/autofill/main/main-desktop-autotype.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/desktop/src/autofill/main/main-desktop-autotype.service.ts b/apps/desktop/src/autofill/main/main-desktop-autotype.service.ts index c26e24de6c8..59d1cb5a030 100644 --- a/apps/desktop/src/autofill/main/main-desktop-autotype.service.ts +++ b/apps/desktop/src/autofill/main/main-desktop-autotype.service.ts @@ -18,9 +18,7 @@ export class MainDesktopAutotypeService { private windowMain: WindowMain, ) { this.autotypeKeyboardShortcut = new AutotypeKeyboardShortcut(); - } - init() { ipcMain.handle(AUTOTYPE_IPC_CHANNELS.INIT, () => { this.init(); }); @@ -28,7 +26,9 @@ export class MainDesktopAutotypeService { ipcMain.handle(AUTOTYPE_IPC_CHANNELS.INITIALIZED, () => { return this.isInitialized; }); + } + init() { ipcMain.on(AUTOTYPE_IPC_CHANNELS.TOGGLE, (_event, enable: boolean) => { if (enable) { this.enableAutotype();