fix: dock cannot instantly hide or show when toggle auto-hide option

This commit is contained in:
Hakadao
2023-11-26 19:56:02 +08:00
parent 5ef0abe3ae
commit f576df449e

View File

@@ -46,6 +46,10 @@ const dockItems = computed((): DockItem[] => {
]
})
watch(() => settings.value.autoHideDock, (newValue) => {
hideDock.value = newValue
})
onMounted(() => {
if (settings.value.autoHideDock)
hideDock.value = true