summaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
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()); }},
]
},
]);