diff options
author | Andrew Dolgov <[email protected]> | 2019-03-13 14:17:06 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-03-13 14:17:06 +0300 |
commit | 7c6287dfd404e96f080c48681c349919868e6f42 (patch) | |
tree | 8b1112ef7fe89ca5b6956100480692665ac1cd9f /app.js | |
parent | dbaa677c20864c8c4c5d2cf3c6bcc3cc732b8cb4 (diff) |
add most basic stuff
Diffstat (limited to 'app.js')
-rwxr-xr-x | app.js | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -30,7 +30,7 @@ function createWindow() { } }); - //mainWindow.setMenu(null); + mainWindow.maximize(); const menu = Menu.buildFromTemplate([ { @@ -39,21 +39,21 @@ function createWindow() { {label: 'Open...', click: () => { openFileDialog(); }}, - {label: 'Exit'} + {label: 'Exit', click: () => { app.quit(); }} ] }, { label: 'Location', submenu: [ - {label: 'Go to...'}, - {label: 'Sync to last page read'}, + {label: 'Go to...', click: () => { mainWindow.webContents.send("open-location"); }}, + {label: 'Sync to last page read', click: () => { mainWindow.webContents.send("sync-to-last"); }}, ] }, { label: 'Tools', submenu: [ - {label: 'Settings'}, - {label: 'Toggle fullscreen'}, + {label: 'Settings', click: () => { mainWindow.webContents.send("open-settings"); }}, + {label: 'Toggle fullscreen', click: () => { mainWindow.setFullScreen(!mainWindow.isFullScreen()); }}, ] }, ]); |