@@ -13,8 +13,9 @@ import { useDevice } from '@/composables/useDevice'
1313import { useModel } from ' @/composables/useModel'
1414import { useSharedMenu } from ' @/composables/useSharedMenu'
1515import { INVOKE_KEY } from ' @/constants'
16- import { hideWindow , setAlwaysOnTop , showWindow } from ' @/plugins/window'
16+ import { hideWindow , setAlwaysOnTop , setTaskbarVisibility , showWindow } from ' @/plugins/window'
1717import { useCatStore } from ' @/stores/cat'
18+ import { useGeneralStore } from ' @/stores/general.ts'
1819import { useModelStore } from ' @/stores/model'
1920import { join } from ' @/utils/path'
2021
@@ -24,6 +25,7 @@ const { handleDestroy, handleResize, handleMouseDown, handleMouseMove, handleKey
2425const catStore = useCatStore ()
2526const { getSharedMenu } = useSharedMenu ()
2627const modelStore = useModelStore ()
28+ const generalStore = useGeneralStore ()
2729const resizing = ref (false )
2830const backgroundImagePath = ref <string >()
2931
@@ -84,6 +86,8 @@ watch(() => modelStore.currentModel, async (model) => {
8486 backgroundImagePath .value = existed ? convertFileSrc (path ) : void 0
8587}, { deep: true , immediate: true })
8688
89+ watch (() => generalStore .taskbarVisibility , setTaskbarVisibility , { immediate: true })
90+
8791function handleWindowDrag() {
8892 appWindow .startDragging ()
8993}
0 commit comments