From d44149cb883a72da0f4d2dd43476e41ab001a9cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B0=E6=9C=94?= <565183519@qq.com> Date: Wed, 15 Jul 2026 16:02:18 +0800 Subject: [PATCH] fix: enable desktop window dragging --- src/App.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index 62b891c..2b4ef17 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -45,6 +45,7 @@ import { useGitHistory } from './hooks/useGitHistory' import { useUpdater, restartApp } from './hooks/useUpdater' import { useAutoSync } from './hooks/useAutoSync' import { useGuanghuTheme } from './hooks/useGuanghuTheme' +import { useDragRegion } from './hooks/useDragRegion' import { useConflictResolver } from './hooks/useConflictResolver' import { useVaultConfig } from './hooks/useVaultConfig' import { useOnboarding } from './hooks/useOnboarding' @@ -171,6 +172,7 @@ function MainApp({ noteWindowParams }: { noteWindowParams: NoteWindowParams | nu const aiWorkspaceWindow = false const [showHoloLakeHome, setShowHoloLakeHome] = useState(false) const { theme: guanghuTheme, cycleTheme } = useGuanghuTheme() + const { dragRegionRef } = useDragRegion() const [selection, setSelection] = useState(DEFAULT_SELECTION) const [noteListFilter, setNoteListFilter] = useState('open') const [pendingNoteListPdfExportPath, setPendingNoteListPdfExportPath] = useState(null) @@ -1627,7 +1629,7 @@ function MainApp({ noteWindowParams }: { noteWindowParams: NoteWindowParams | nu return (
-
+
光湖语言人格驱动操作系统