feat(download): torrent downloads manager

This commit is contained in:
Alexey Kasyanchuk
2018-03-06 11:17:24 +03:00
parent c40799816b
commit 1e86ba84c1
8 changed files with 119 additions and 6 deletions

View File

@ -0,0 +1,23 @@
import { app, BrowserWindow, shell } from "electron";
import path from "path";
import url from "url";
export const manageMenuTemplate = {
label: "Manage",
submenu: [
{
label: "Downloads",
accelerator: "CmdOrCtrl+d",
click: () => {
BrowserWindow.getFocusedWindow().webContents.send('url', '/downloads')
},
},
{
label: "Search",
accelerator: "CmdOrCtrl+n",
click: () => {
BrowserWindow.getFocusedWindow().webContents.send('url', '/')
},
}
]
};