summaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-03-13 14:17:06 +0300
committerAndrew Dolgov <[email protected]>2019-03-13 14:17:06 +0300
commit7c6287dfd404e96f080c48681c349919868e6f42 (patch)
tree8b1112ef7fe89ca5b6956100480692665ac1cd9f /app.js
parentdbaa677c20864c8c4c5d2cf3c6bcc3cc732b8cb4 (diff)
add most basic stuff
Diffstat (limited to 'app.js')
-rwxr-xr-xapp.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/app.js b/app.js
index 3dc0926..ba5686a 100755
--- a/app.js
+++ b/app.js
@@ -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()); }},
]
},
]);