Update visibility condition for 'Open Folder' menu item
This commit is contained in:
4
main.js
4
main.js
@@ -1404,7 +1404,7 @@ ipcMain.on('show-tree-context-menu', (event, { absPath, relPath, root, type }) =
|
|||||||
{
|
{
|
||||||
label: 'Open Folder',
|
label: 'Open Folder',
|
||||||
click: () => shell.openPath(absPath),
|
click: () => shell.openPath(absPath),
|
||||||
visible: type === 'folder' // Nur für Dateien anzeigen
|
visible: type === 'dir' // Nur für Dateien anzeigen
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Copy File Path',
|
label: 'Copy File Path',
|
||||||
@@ -1414,7 +1414,7 @@ ipcMain.on('show-tree-context-menu', (event, { absPath, relPath, root, type }) =
|
|||||||
{
|
{
|
||||||
label: 'Copy Folder Path',
|
label: 'Copy Folder Path',
|
||||||
click: () => clipboard.writeText(absPath),
|
click: () => clipboard.writeText(absPath),
|
||||||
visible: type === 'folder' // Nur für Dateien anzeigen
|
visible: type === 'dir' // Nur für Dateien anzeigen
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Add to .gitignore',
|
label: 'Add to .gitignore',
|
||||||
|
|||||||
Reference in New Issue
Block a user