fix(settings): merge defaults for getAll (#66)

This commit is contained in:
Nexmoe
2026-01-09 20:53:08 +08:00
committed by GitHub
parent f04680b8c2
commit 92494966c6

View File

@@ -53,7 +53,11 @@ class SettingsManager {
}
getAll(): AppSettings {
return this.store.store
return {
...defaultSettings,
downloadPath: DEFAULT_DOWNLOAD_PATH,
...this.store.store
}
}
setAll(settings: Partial<AppSettings>): void {