refactor: execute the right-click menu function to hide the window (#257)

This commit is contained in:
ayangweb
2025-03-07 10:59:56 +08:00
committed by GitHub
parent 290f67fcf6
commit 63dbe90575

View File

@@ -2,6 +2,7 @@ import { useOSKeyPress } from "@/hooks/useOSKeyPress";
import { useSearchStore } from "@/stores/searchStore";
import { copyToClipboard, OpenURLWithBrowser } from "@/utils";
import { isMac } from "@/utils/platform";
import { invoke } from "@tauri-apps/api/core";
import {
useClickAway,
useCreation,
@@ -121,6 +122,8 @@ const ContextMenu = () => {
clickEvent?.();
setVisibleContextMenu(false);
invoke("hide_coco");
};
return (