🐛 fix tooltip hover

This commit is contained in:
2026-03-06 20:23:51 +10:00
parent 56381d1815
commit c538717d36
3 changed files with 23 additions and 1 deletions

View File

@@ -30,6 +30,7 @@ export function FileTreeNode({ node, depth, dirPath, siblings }: Props): JSX.Ele
const openFile = async (): Promise<void> => {
if (node.type === 'file') {
if (node.path === activeFilePath) return
const content = await window.api.readFile(node.path)
setActiveFile(node.path, content)
}