Skip to content

Commit

Permalink
easy
Browse files Browse the repository at this point in the history
  • Loading branch information
0-don committed Sep 28, 2023
1 parent ccb0f9d commit 6441a97
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
});
Expand Down

0 comments on commit 6441a97

Please sign in to comment.