Skip to content

Commit

Permalink
Fix default settings can be altered at runtime (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
webfiltered authored Nov 21, 2024
1 parent 4687784 commit f3ea8f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/comfySettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export interface ComfySettingsData {
*/
export class ComfySettings {
public readonly filePath: string;
private settings: ComfySettingsData = DEFAULT_SETTINGS;
private settings: ComfySettingsData = structuredClone(DEFAULT_SETTINGS);

constructor(basePath: string) {
this.filePath = path.join(basePath, 'user', 'default', 'comfy.settings.json');
Expand Down

0 comments on commit f3ea8f1

Please sign in to comment.