From 92494966c68295edbcfbe5f1ba55dfeafc648b17 Mon Sep 17 00:00:00 2001 From: Nexmoe <16796652+nexmoe@users.noreply.github.com> Date: Fri, 9 Jan 2026 20:53:08 +0800 Subject: [PATCH] fix(settings): merge defaults for getAll (#66) --- src/main/settings.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/settings.ts b/src/main/settings.ts index cebf689..e86cf17 100644 --- a/src/main/settings.ts +++ b/src/main/settings.ts @@ -53,7 +53,11 @@ class SettingsManager { } getAll(): AppSettings { - return this.store.store + return { + ...defaultSettings, + downloadPath: DEFAULT_DOWNLOAD_PATH, + ...this.store.store + } } setAll(settings: Partial): void {