mirror of
https://github.com/infinilabs/coco-app.git
synced 2026-08-29 10:09:30 +02:00
feat: tray internationalization and shortcut display (#259)
This commit is contained in:
@@ -10,7 +10,6 @@ import ChatAI, { ChatAIRef } from "@/components/Assistant/Chat";
|
||||
import { useAppStore } from "@/stores/appStore";
|
||||
import { useAuthStore } from "@/stores/authStore";
|
||||
import { isWin } from "@/utils/platform";
|
||||
import { useMount } from "ahooks";
|
||||
|
||||
export default function DesktopApp() {
|
||||
const initializeListeners = useAppStore((state) => state.initializeListeners);
|
||||
@@ -20,9 +19,9 @@ export default function DesktopApp() {
|
||||
|
||||
const isPinned = useAppStore((state) => state.isPinned);
|
||||
|
||||
useMount(() => {
|
||||
useEffect(() => {
|
||||
invoke("get_app_search_source");
|
||||
});
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
initializeListeners();
|
||||
|
||||
Reference in New Issue
Block a user