Compare commits
No commits in common. "178f9e72a74deb155d7aca093317d5bf652e5c81" and "cf5566eacb37167e8ce3c2a1cd2352335aacf2b1" have entirely different histories.
178f9e72a7
...
cf5566eacb
3 changed files with 3 additions and 4 deletions
|
|
@ -266,7 +266,7 @@ const Status = {
|
|||
},
|
||||
muteFilterHits() {
|
||||
return muteFilterHits(
|
||||
Object.values(useSyncConfigStore().prefsStorage.simple.muteFilters || {}),
|
||||
Object.values(useSyncConfigStore().prefsStorage.simple.muteFilters),
|
||||
this.status,
|
||||
)
|
||||
},
|
||||
|
|
|
|||
|
|
@ -635,7 +635,7 @@ export const LOCAL_DEFAULT_CONFIG_DEFINITIONS = {
|
|||
},
|
||||
imageCompression: {
|
||||
description: 'Image compression (WebP/JPEG)',
|
||||
default: true,
|
||||
default: false,
|
||||
},
|
||||
alwaysUseJpeg: {
|
||||
description: 'Compress images using JPEG only',
|
||||
|
|
|
|||
|
|
@ -796,12 +796,11 @@ export const useSyncConfigStore = defineStore('sync_config', {
|
|||
afterLoad(state) {
|
||||
console.debug('Validating persisted state of SyncConfig')
|
||||
const newState = { ...state }
|
||||
newState.prefsStorage = newState.prefsStorage || {}
|
||||
const newEntries = Object.entries(ROOT_CONFIG).map(([path, value]) => {
|
||||
const definition = ROOT_CONFIG_DEFINITIONS[path]
|
||||
const finalValue = validateSetting({
|
||||
path,
|
||||
value: newState.prefsStorage.simple?.[path],
|
||||
value: newState.prefsStorage.simple[path],
|
||||
definition,
|
||||
throwError: false,
|
||||
validateObjects: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue