diff --git a/src/index.tsx b/src/index.tsx index 3eb3aec1..6d62d588 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -19,9 +19,10 @@ const Index = () => { createResource(init); onMount(async () => { - appWindow.onFocusChanged(async ({ payload }) => { + appWindow.onFocusChanged(({ payload }) => { + console.log(payload); if (!payload) { - // await appWindow.hide(); + appWindow.hide(); removeAllHotkeyListeners(); } });