Skip to content

Commit

Permalink
Remove circular dependency
Browse files Browse the repository at this point in the history
Allows desktop change to be merged prior to frontend changes for this feature.
  • Loading branch information
webfiltered committed Dec 12, 2024
1 parent 90db94b commit 3f0b65e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/main-process/comfyDesktopApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,11 @@ export class ComfyDesktopApp {
store.set('basePath', installWizard.basePath);

const { gpu } = installOptions;
store.set('selectedGpu', gpu);
if (gpu === 'cpu') store.set('devCpuMode', true);
else store.delete('devCpuMode');
if (gpu !== undefined) {
store.set('selectedGpu', gpu);
if (gpu === 'cpu') store.set('devCpuMode', true);
else store.delete('devCpuMode');
}

await installWizard.install();
store.set('installState', 'installed');
Expand Down
2 changes: 1 addition & 1 deletion src/preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface InstallOptions {
allowMetrics: boolean;
migrationSourcePath?: string;
migrationItemIds?: string[];
gpu: GpuType;
gpu?: GpuType;
}

export interface SystemPaths {
Expand Down

0 comments on commit 3f0b65e

Please sign in to comment.