1
0

Update visibility condition for 'Open Folder' menu item

This commit is contained in:
2025-05-26 20:36:12 +02:00
parent 523ce91120
commit 90d10fa4cb

View File

@@ -1404,7 +1404,7 @@ ipcMain.on('show-tree-context-menu', (event, { absPath, relPath, root, type }) =
{
label: 'Open Folder',
click: () => shell.openPath(absPath),
visible: type === 'folder' // Nur für Dateien anzeigen
visible: type === 'dir' // Nur für Dateien anzeigen
},
{
label: 'Copy File Path',
@@ -1414,7 +1414,7 @@ ipcMain.on('show-tree-context-menu', (event, { absPath, relPath, root, type }) =
{
label: 'Copy Folder Path',
click: () => clipboard.writeText(absPath),
visible: type === 'folder' // Nur für Dateien anzeigen
visible: type === 'dir' // Nur für Dateien anzeigen
},
{
label: 'Add to .gitignore',