auto-git:
[change] main.js
This commit is contained in:
12
main.js
12
main.js
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user