Fixed gallery auto mode
This commit is contained in:
parent
24eb852822
commit
ccad83b8ec
@ -77,8 +77,8 @@ watchEffect(() => {
|
||||
store.query = props.query
|
||||
})
|
||||
|
||||
watch(() => props.path, () => {
|
||||
store.prefs.gallery = documents.value.some(d => d.previewable)
|
||||
watch(documents, (docs) => {
|
||||
store.prefs.gallery = docs.some(d => d.previewable)
|
||||
}, { immediate: true })
|
||||
</script>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user