From 2c02eff771f4f9961815b9374702c36a632ce6e2 Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Fri, 27 Dec 2024 09:47:16 +1100 Subject: [PATCH] Prevent installer from running when installed (#569) Set installed state after first installation --- src/install/installationManager.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/install/installationManager.ts b/src/install/installationManager.ts index da6c9760..53b0119b 100644 --- a/src/install/installationManager.ts +++ b/src/install/installationManager.ts @@ -101,7 +101,9 @@ export class InstallationManager { useDesktopConfig().set('migrateCustomNodesFrom', installWizard.migrationSource); } - return new ComfyInstallation('installed', installWizard.basePath); + const installation = new ComfyInstallation('installed', installWizard.basePath); + installation.setState('installed'); + return installation; } /**