From 6441a9709a5002e87da9890a7ee9ba6badf7fe66 Mon Sep 17 00:00:00 2001 From: "don.cryptus" Date: Thu, 28 Sep 2023 20:34:02 +0200 Subject: [PATCH] easy --- src/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(); } });