From 8488b8a6130e69a31497c7c0148dde256f2c9667 Mon Sep 17 00:00:00 2001 From: neuronull <9162534+neuronull@users.noreply.github.com> Date: Mon, 3 Nov 2025 10:57:20 -0700 Subject: [PATCH] check double initialization --- .../src/autofill/main/main-desktop-autotype.service.ts | 5 +++++ 1 file changed, 5 insertions(+) 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..3459ccd7fa6 100644 --- a/apps/desktop/src/autofill/main/main-desktop-autotype.service.ts +++ b/apps/desktop/src/autofill/main/main-desktop-autotype.service.ts @@ -21,6 +21,11 @@ export class MainDesktopAutotypeService { } init() { + if (this.isInitialized) { + this.logService.warning("MainDesktopAutotypeService already initialized."); + return; + } + ipcMain.handle(AUTOTYPE_IPC_CHANNELS.INIT, () => { this.init(); });