From 18456c0ff3d1f96c294d036f2879c70fb4380bc0 Mon Sep 17 00:00:00 2001 From: neuronull <9162534+neuronull@users.noreply.github.com> Date: Wed, 29 Oct 2025 15:18:44 -0600 Subject: [PATCH] claude: IPC Handler Registration in Constructor --- .../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 1b688672c5b..8eba6955efd 100644 --- a/apps/desktop/src/autofill/main/main-desktop-autotype.service.ts +++ b/apps/desktop/src/autofill/main/main-desktop-autotype.service.ts @@ -17,7 +17,9 @@ export class MainDesktopAutotypeService { private windowMain: WindowMain, ) { this.autotypeKeyboardShortcut = new AutotypeKeyboardShortcut(); + } + init() { ipcMain.handle("autofill.initAutotype", () => { this.init(); }); @@ -25,9 +27,7 @@ export class MainDesktopAutotypeService { ipcMain.handle("autofill.autotypeIsInitialized", () => { return this.isInitialized; }); - } - init() { ipcMain.on("autofill.toggleAutotype", (_event, enable: boolean) => { if (enable) { this.enableAutotype();