fix(stage-tamagotchi): auto focus to prevent not selectable

This commit is contained in:
Ayaka Neko
2025-08-21 01:38:52 +08:00
parent d6380ece7b
commit 3e43224669
@@ -1,5 +1,6 @@
import type { AiriTamagotchiEvents } from '../composables/tauri'
import { getCurrentWindow } from '@tauri-apps/api/window'
import { defineStore } from 'pinia'
import { onMounted, onUnmounted, ref } from 'vue'
@@ -24,6 +25,9 @@ export const useWindowControlStore = defineStore('windowControl', () => {
}
stopClickThrough()
const window = getCurrentWindow()
window.setFocus()
}
return {