1
0

auto-git:

[change] main.js
This commit is contained in:
2025-05-26 20:37:01 +02:00
parent 90d10fa4cb
commit 3464119588

12
main.js
View File

@@ -1374,18 +1374,18 @@ function buildTrayMenu() {
ipcMain.on('show-folder-context-menu', (event, folderPath) => { ipcMain.on('show-folder-context-menu', (event, folderPath) => {
const win = BrowserWindow.fromWebContents(event.sender); const win = BrowserWindow.fromWebContents(event.sender);
const template = [ const template = [
{
label: 'Copy Folder Path',
click: () => {
clipboard.writeText(folderPath);
}
},
{ {
label: 'Open Folder', label: 'Open Folder',
click: () => { click: () => {
// öffnet den Ordner in der nativen Dateiansicht // öffnet den Ordner in der nativen Dateiansicht
shell.openPath(folderPath); shell.openPath(folderPath);
} }
},
{
label: 'Copy Folder Path',
click: () => {
clipboard.writeText(folderPath);
}
} }
]; ];
const menu = Menu.buildFromTemplate(template); const menu = Menu.buildFromTemplate(template);