Skip to content

Commit

Permalink
Fix installState never marked as 'started'
Browse files Browse the repository at this point in the history
  • Loading branch information
webfiltered committed Dec 17, 2024
1 parent e882e8d commit 2b2b544
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main-process/comfyDesktopApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,11 @@ export class ComfyDesktopApp {
* Install ComfyUI and return the base path.
*/
static async install(appWindow: AppWindow): Promise<string> {
const config = useDesktopConfig();
if (!config.get('installState')) config.set('installState', 'started');

const validation = await validateHardware();
if (typeof validation?.gpu === 'string') useDesktopConfig().set('detectedGpu', validation.gpu);
if (typeof validation?.gpu === 'string') config.set('detectedGpu', validation.gpu);

if (!validation.isValid) {
await appWindow.loadRenderer('not-supported');
Expand Down

0 comments on commit 2b2b544

Please sign in to comment.