diff --git a/src/components/Settings/components/About.vue b/src/components/Settings/components/About.vue index b3d1bbed..fccc9c9e 100644 --- a/src/components/Settings/components/About.vue +++ b/src/components/Settings/components/About.vue @@ -21,9 +21,13 @@ function handleImportSettings() { reader.onload = (event: Event) => { const fileReaderTarget = event.target as FileReader const fileContent = fileReaderTarget.result as string - const jsonObject = JSON.parse(fileContent) + const jsonObject = JSON.parse(fileContent) as any - settings.value = jsonObject + // Merge the new settings with the existing settings + Object.keys(jsonObject).forEach((key) => { + if (key in settings.value) + (settings.value as any)[key] = jsonObject[key] + }) importSettingsRef.value?.removeEventListener('change', handleChange) }