mirror of
https://github.com/infinilabs/coco-app.git
synced 2025-12-29 00:24:46 +01:00
refactor: execute the right-click menu function to hide the window (#257)
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user